I didn't realise how deep the magic of <> was.
perlop says:
The <> symbol will return undef for end-of-file only once. If you call it again after this, it will assume you are processing another @ARGV list, and if you haven't set @ARGV, will read input from STDIN.
In reply to Re^2: Replacing expression on certain line numbers
by FunkyMonk
in thread Replacing expression on certain line numbers
by tsk1979
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |