in reply to Re: 'perl -p' ne 'cat'
in thread 'perl -p' ne 'cat'
#! /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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re:x2 'perl -p' ne 'cat'
by Abigail-II (Bishop) on Jun 04, 2002 at 09:00 UTC | |
by Juerd (Abbot) on Jun 04, 2002 at 09:55 UTC |