(untested)echo stuff | perl -ne 'BEGIN{ $x=shift @ARGV; } print "x=$x\n"' myarg
Is this like what you had in mind?
In reply to Re: Differentiating STDIN from arguments when using -n ?
by bart
in thread Differentiating STDIN from arguments when using -n ?
by rduke15
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |