We don't bite newbies here... much | |
PerlMonks |
Re: perl open modeby Sidhekin (Priest) |
on Oct 24, 2007 at 00:22 UTC ( [id://646789]=note: print w/replies, xml ) | Need Help?? |
As you are reading from the file handle in list context, you advance its position until eof. Then you print. At the former eof. (If you had opened with +>>, you would not have been able to read anything without seeking first.) Update: For what you want, and with a tiny bit more clarity:
print "Just another Perl ${\(trickster and hacker)},"
In Section
Seekers of Perl Wisdom
|
|