Hi, I trying to be more modular and have put some functions into a separate file, myfunctions.pm. I have another script(s) which call the exported functions from myfunctons.pm. What I would now like is for the myfunctions.pm file to be able to access a filehandle opened by the calling script, mainly for logging purposes.
Do I have to pass the FH each time I use one of the exported functions? If so can do I need to scalar it first, EG my $fh = FH. Or should I be doing it the other way round, have myfunctions.pm open the filehandle and pass that to the scalling function? What would be the preferred method and how can I achieve it? TIA. Dp. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
