how to write stderr in a subroutine log file?..

perl 5.6.1 in win2000:

my program uses a subroutine which will write log file. i will call that sub routine like this
&log_message("the file $inputfile opened");

what should i do to write the stderr on the same log file itself..

i tried to pass the stderr to the subroutine like
&log_message(\*STDERR);
and
&log_message(*STDERR) ;

but no use.,

dont know what to do...

Please make sure that you have read our rules. And note:
(4) Do not 'bump up' questions if they are not answered promptly. No duplicate or cross-posting and do not report a post where your goal is to get an answer more quickly.

I will close this duplicate thread.