laziness, impatience, and hubris | |
PerlMonks |
Re^4: Can't find any documentation on < a b c > syntax for listsby LanX (Saint) |
on Feb 14, 2023 at 14:33 UTC ( [id://11150360]=note: print w/replies, xml ) | Need Help?? |
> Why are these different? > perl -MO=Deparse,-p -e 'print "$_\n" for < a >;' > perl -MO=Deparse,-p -e 'print "$_\n" for <a>;' a could be an old-style bare-word file-handle, but " a " can't think
one of the reasons why ppl are encouraged to use lexical filehandles:
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|