-p is documented to do while (<>), not while (<DATA>)
The default file handle, ARGV, reads from the files named in @ARGV (i.e. supplied on the command line) or STDIN if no files were supplied.
In reply to Re: -p option with __DATA__
by ikegami
in thread -p option with __DATA__
by jdalbec
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |