Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
output would be:myscript name
my $argv = $ARGV[0] || die "No parameters given.\n"; foreach $argv { substr($argv, 3, length($argv)) print $argv; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Homework alert! Re: Substring for command line entry
by merlyn (Sage) on Jun 21, 2002 at 18:53 UTC | |
|
Re: Substring for command line entry
by Abigail-II (Bishop) on Jun 21, 2002 at 18:29 UTC | |
|
Re: Substring for command line entry
by stajich (Chaplain) on Jun 21, 2002 at 18:49 UTC | |
|
Re: Substring for command line entry
by little (Curate) on Jun 21, 2002 at 19:30 UTC | |
by Aristotle (Chancellor) on Jun 21, 2002 at 19:40 UTC | |
by little (Curate) on Jun 21, 2002 at 19:44 UTC |