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
In reply to Re^2: <> oddity ?
by hdb
in thread <> oddity ?
by Krambambuli
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |