in reply to Re^2: 'perl -e' and '__DATA__' What's wrong?
in thread 'perl -e' and '__DATA__' What's wrong?
STDIN is already used for the script and so I can't pipe other content in
I'm probably misunderstanding something but
$ cat cccc zzz 999 $ cat cccc | perl -e ' > print <<'EOT'; > abc > 123 > EOT > print while <>;' abc 123 zzz 999 $
I can read from STDIN here. Have I got the wrong end of the stick?
Cheers,
JohnGG
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: 'perl -e' and '__DATA__' What's wrong?
by Skeeve (Parson) on Dec 07, 2007 at 14:47 UTC | |
by duff (Parson) on Dec 07, 2007 at 14:53 UTC | |
by Skeeve (Parson) on Dec 07, 2007 at 15:15 UTC | |
by shmem (Chancellor) on Dec 07, 2007 at 18:27 UTC | |
by eric256 (Parson) on Dec 07, 2007 at 16:19 UTC |