Just another Perl shrine | |
PerlMonks |
Re^3: Could I get some feedback on my code please?by Errto (Vicar) |
on Jan 14, 2007 at 02:50 UTC ( [id://594596]=note: print w/replies, xml ) | Need Help?? |
About the file handle thing: in Perl 5 a file handle can be stored as a reference in a scalar variable. As of Perl 5.6 (I think), the builtin open function can initialize this variable for you:
Now $tokenfile is your filehandle and you don't have to worry about it being global or whatever. Have a read through perlopentut - it talks more about this.
In Section
Seekers of Perl Wisdom
|
|