G
g3000
I have read that the array ARGV holds the command line arguments.
is there a way to pass a hash ( list ) as an argument on the command
line?
I know in a sub routine @_ can be a hash.
But I want to do something like
myprogram.pl (key1=>'value1',key2=>'value2')
and inside the sub in my program be able to
sub1
{
my %options = @_;
.....
}
when I have a call at the end being
sub1(@ARGV);
dont think it can be done but I just want to be positive.
is there a way to pass a hash ( list ) as an argument on the command
line?
I know in a sub routine @_ can be a hash.
But I want to do something like
myprogram.pl (key1=>'value1',key2=>'value2')
and inside the sub in my program be able to
sub1
{
my %options = @_;
.....
}
when I have a call at the end being
sub1(@ARGV);
dont think it can be done but I just want to be positive.