go ahead... be a heretic | |
PerlMonks |
Re: Still blurry on variables for filehandlesby Errto (Vicar) |
on Jan 24, 2007 at 16:34 UTC ( [id://596279]=note: print w/replies, xml ) | Need Help?? |
The issue comes from assigning $foo to the string 'FILE'. As others have mentioned, you can call open on an undefined scalar lvalue and it will magically assign a filehandle to it. If you are so inclined, you can also do it explicitly yourself:
Update: switched modules per ikegami's suggestion.
In Section
Seekers of Perl Wisdom
|
|