Have them pass the arrays as a reference. For example:

@array1 = (1, 2, 3, 4, 5);
@array2 = (6, 7, 8, 9, 10);
mysub([EMAIL PROTECTED],[EMAIL PROTECTED]);

sub mysub{

     my ($array1, $array2) = @_;   
      #process @{$array1}
      #process @{$array2} etc
      return @array3;
}

Look into perldoc perlref

Prototyping is another option, not entirely recommended unless it's entirely 
needed. perdoc perlsub for more info.

--
-will 
http://www.wgunther.tk
(the above message is double rot13 encoded for security reasons)

Most Useful Perl Modules
-strict
-warnings
-Devel::DProf
-Benchmark
-B::Deparse
-Data::Dumper
-Clone
-Perl::Tidy
-Beautifier
-DBD::SQLite 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to