yoda54 has asked for the wisdom of the Perl Monks concerning the following question:
How does one do something like this?
echo one two | PERLSCRIPT
@ARGV doesn't seem to work this way.
Thanks
#!/usr/bin/perl use strict; use warnings; foreach(@ARGV) { print "passed $_\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Passing parameters to Perl Script
by gaal (Parson) on Feb 18, 2005 at 08:26 UTC | |
by holli (Abbot) on Feb 18, 2005 at 09:13 UTC | |
by blazar (Canon) on Feb 18, 2005 at 09:34 UTC | |
|
Re: Passing parameters to Perl Script
by Thilosophy (Curate) on Feb 18, 2005 at 09:04 UTC | |
|
Re: Passing parameters to Perl Script
by Anonymous Monk on Feb 18, 2005 at 09:37 UTC |