in reply to Re: Differentiating STDIN from arguments when using -n ?
in thread Differentiating STDIN from arguments when using -n ?
$ cat gibberish This is a couple of lines of crud $ cat gibberish | perl -Mstrict -Mwarnings -ne ' > my $x; > BEGIN {$x = shift @ARGV; print qq{BEGIN - $x\n}} > print qq{x = $x\n$_};' myarg BEGIN - myarg x = myarg This is a couple Use of uninitialized value in concatenation (.) or string at -e line 4 +, <> line 2. x = of lines of crud $
I wonder what is causing this.
Cheers,
JohnGG
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Differentiating STDIN from arguments when using -n ?
by bart (Canon) on Sep 15, 2007 at 11:53 UTC |