in reply to Re: <> oddity ?
in thread <> oddity ?
If you call the code below stdin.pl,
while(<>) { print; }
then all three commands below result in the same output:
$ perl stdin.pl stdin.pl $ perl stdin.pl < stdin.pl $ cat stdin.pl | perl stdin.pl
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: <> oddity ?
by LanX (Saint) on Mar 27, 2013 at 10:48 UTC |
In Section
Seekers of Perl Wisdom