Do you know where your variables are? | |
PerlMonks |
Global filehandles?by Marknel (Acolyte) |
on Oct 19, 2004 at 18:14 UTC ( [id://400609]=perlquestion: print w/replies, xml ) | Need Help?? |
Marknel has asked for the wisdom of the Perl Monks concerning the following question:
Being realtively new to Perl as a whole I ask your paitence with this request for guidance.
I'm attempting to log things at certian points of a program. This program contains a subroutine that is called at least twice during this program. At the end of each run of the subroutine, I would like to print the results to the programs logfile.
The problem I'm running into is that when I open the filehandle to the logfile in the main body of the program, the subroutine does not seem to be able to access that open file handle.
I've read the perl doc on open, but either I didn't find anything relating to the Global use of a open filehandle.
Where should I be looking for the solution?
Back to
Seekers of Perl Wisdom
|
|