J
Jack
hi folks,
I am reading in arguments just fine using the code below, but I want to
be able to add a variable number of values into an argument into perl -
I want to be able to say
perl -f value1 value2 ..valueN -v value value2 ..valueN
and store the values of -f in a single array, and -v also (and the
number of passed values could vary !)
If anyone has any tips that would be great - Thanks, Jack
if (@ARGV[0] eq undef) {
$value1=@ARGV[0];
}
if (@ARGV[1] eq undef) {
$value2=@ARGV[1];
I am reading in arguments just fine using the code below, but I want to
be able to add a variable number of values into an argument into perl -
I want to be able to say
perl -f value1 value2 ..valueN -v value value2 ..valueN
and store the values of -f in a single array, and -v also (and the
number of passed values could vary !)
If anyone has any tips that would be great - Thanks, Jack
if (@ARGV[0] eq undef) {
$value1=@ARGV[0];
}
if (@ARGV[1] eq undef) {
$value2=@ARGV[1];