I am trying to create something like the following, which will loop through an array and simultaneously remove the first value from the array each time:
@array = (1,2,3,4,5,6);
foreach $value (@array)
{
shift(@array); ## used elsewhere
print "$value";
}
My problem is that the...
I have a Perl script into which I would like to call different sets of parameters depending on the input.
e.g.
command: myscript.pl [parameter_file_name]
where [parameter_file_name] is one of:
myparameters_1.pl
myparameters_2.pl
etc...
each file containing parameters of the form...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.