Gretter has asked for the wisdom of the Perl Monks concerning the following question:
Script two:#!/usr/bin/perl $arg shift @ARGV; print $arg;
In bash I would then write:<br ./one.pl "one" | ./two.pl ... and hope for the output of: "one and two"#!/usr/bin/perl $arg shift @ARGV; print $arg." and two";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How do I use the output of one perls script as the input of another on the commandline? like a pipeline
by ikegami (Patriarch) on May 14, 2009 at 22:11 UTC | |
Re: How do I use the output of one perls script as the input of another on the commandline? like a pipeline
by Corion (Patriarch) on May 14, 2009 at 19:07 UTC | |
Re: How do I use the output of one perls script as the input of another on the commandline? like a pipeline
by Thelonius (Priest) on May 14, 2009 at 20:07 UTC | |
Re: How do I use the output of one perls script as the input of another on the commandline? like a pipeline
by sathiya.sw (Monk) on May 15, 2009 at 07:48 UTC | |
Re: How do I use the output of one perls script as the input of another on the commandline? like a pipeline
by sergstesh (Novice) on May 14, 2009 at 19:13 UTC |