#! /usr/bin/perl -p
... and nothing else. Curiously enough, this does do the same thing as cat(1). Which only begs the question why does it work when -p is placed on the shebang line of a script, as opposed to needing -e 1 when used on a command line? The command line behaviour looks like a bug to me.
In reply to Re:x2 'perl -p' ne 'cat'
by grinder
in thread 'perl -p' ne 'cat'
by grinder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |