Hey guys, I'm running Perl on IIS 3 (yeah, I know, it sucks, I need Solaris), and I'm having problems with a program that calls up subscripts like this:
my $mainerror=system("type test1_main.dat | main_input.pl");
my $drivererror=system("type test1_drivers.dat |...
Using 'my $p1 = shift' is my preferred method, because it allows you to easily pass both scalars and an array to the sub. You pass your scalars first, then the array. In the sub, you'll use shift to pop the scalars out of @_, then you can just straight out assign '@your_array = @_'.
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.