Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: How do I use the output of one perls script as the input of another on the commandline? like a pipelineby Thelonius (Priest) |
on May 14, 2009 at 20:07 UTC ( [id://764155]=note: print w/replies, xml ) | Need Help?? |
I think you're confusing ARGV with standard input, but it's not clear. If you want (in bash), the output of one program to be the arguments of another, you can use the backticks `` or $( ).
If you fix your programs by changing $arg shift @ARGV to $arg = shift @ARGV, then you can get the effect that I think you want by doing (in bash):
In Section
Seekers of Perl Wisdom
|
|