--- Peter Cornelius <[EMAIL PROTECTED]> wrote:
> The <FILE> doesn't read into $_.  You can add a 'print $_;' in there
> to verify it.  I think you're getting confused by the
>    while(<FILE>){...}
> structure.  This puts the result of the readline into $_ for you if
> the <FILE> is the only thing in the '()'.  Otherwise, I believe just
> calling <FILE> on a line by itself sends that line to the bit bucket.

I think that's right. On a line alone is a void context, but while(){}
is a scalar context. 

Always think of context when something doesn't make sense. =o)

=====
print "Just another Perl Hacker\n"; # edited for readability =o)
=============================================================
Real friends are those whom, when you inconvenience them, are bothered less by it than 
you are. -- me. =o) 
=============================================================
"There are trivial truths and there are great Truths.
 The opposite of a trival truth is obviously false.
 The opposite of a great Truth is also true."  -- Neils Bohr

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Reply via email to