![]() |
|
"be consistent" | |
PerlMonks |
Re^3: <> oddity ?by LanX (Sage) |
on Mar 27, 2013 at 10:48 UTC ( #1025673=note: print w/replies, xml ) | Need Help?? |
you're right from perlop
The null filehandle <> is special: it can be used to emulate the behavior of sed and awk. Input from <> comes either from standard input, or from each file listed on the command line. Here’s how it works: the first time <> is evaluated, the @ARGV array is checked, and if it is empty, $ARGV[0] is set to "-", which when opened gives you standard input. The @ARGV array is then processed as a list of filenames. The loop Cheers Rolf ( addicted to the Perl Programming Language)
In Section
Seekers of Perl Wisdom
|
|