Just another Perl shrine | |
PerlMonks |
Re: Where automatic variable $_ doesn't work?by haukex (Archbishop) |
on Jul 04, 2016 at 20:04 UTC ( [id://1167168]=note: print w/replies, xml ) | Need Help?? |
Hi guiwp, It's not "prohibited": How should Perl tell the difference between print $fh; and print $fh;? With the first one I meant "print the value of $fh to the currently selected filehandle" and with the second one I meant "print $_ to the filehandle $fh"? That's taking DWIM a little too far ;-) Regards,
In Section
Seekers of Perl Wisdom
|
|