P is for Practical | |
PerlMonks |
Re: Re: Parsing Multiple Lines.by Somni (Friar) |
on May 24, 2004 at 05:16 UTC ( [id://355831]=note: print w/replies, xml ) | Need Help?? |
Er, no, open(my $fh, "...") is correct usage. $fh is autovivified into an actual filehandle (not just a symbolic reference). It is the preferred method for opening a filehandle without clobbering an existing one. The excerpt you are referring to does mean an undefined scalar variable ($fh), not a bareword (FH). perldoc perlopentut provides several examples of this in the Indirect Filehandles section.
In Section
Seekers of Perl Wisdom
|
|