proxie has asked for the wisdom of the Perl Monks concerning the following question:
Where it would be the same thing as if internal to the script I had hardcoded it as:%my_perl_script.pl foo1 foo2 foo3
I've tried the below options and using the Getopt::Long, but can't get it right. What am I missing?$my args = q{foo1 foo2 foo3};
my $args = q{@ARGV};
my $args = @ARGV;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Take in command line arguments as an entire string?
by LanX (Saint) on Aug 22, 2018 at 04:48 UTC | |
by proxie (Novice) on Aug 22, 2018 at 05:42 UTC | |
|
Re: Take in command line arguments as an entire string?
by kcott (Archbishop) on Aug 22, 2018 at 05:54 UTC | |
by LanX (Saint) on Aug 22, 2018 at 06:28 UTC | |
by kcott (Archbishop) on Sep 06, 2018 at 07:48 UTC | |
|
Re: Take in command line arguments as an entire string?
by TheloniusMonk (Sexton) on Aug 22, 2018 at 08:43 UTC | |
by LanX (Saint) on Aug 22, 2018 at 12:18 UTC |