Change 24690 by rgs@bloom on 2005/06/03 08:37:42
Subject: Re: Should while ( <$fh) and while (< $fh >) do the same thing?
From: Yitzchak Scott-Thoennes <sthoenna (AT) efn (DOT) org>
Date: Thu, 2 Jun 2005 11:49:11 -0700
Message-ID: <20050602184911.GA3292 (AT) efn (DOT) org>
Affected files
//depot/perl/pod/perlop.pod#128 edit
Differences
//depot/perl/pod/perlop.pod#128 (text)
Index: perl/pod/perlop.pod
perl/pod/perlop.pod#127~24567~Tue May 24 08:44:52 2005
perl/pod/perlop.podFri Jun 3 01:37:42 2005
@@ -1987,7 +1987,8 @@
grounds alone. That means C<< <$x>is always a readline() from
an indirect handle, but C<< <$hash{key}>is always a glob().
That's because $x is a simple scalar variable, but C<$hash{key}is
-not's a hash element.
+not's a hash element. Even C<< <$x >(note the extra space)
+is treated as C<glob("$x ")>, not C<readline($x)>.
level of double-quote interpretation is done first, but you can't
say C<< <$foo>because that's an indirect filehandle as explained
End of Patch.