yitzle wrote: > What would be the 'correct' way to deal with a function that takes eg > 2 scalars and an array? > > Something like this? > > sub mySub($$@) { > my $first = shift; > my $last = shift; > my @list = @_; > .... > } > > or > > sub mySub($$@) { > my $first = $_[0]; > my $last = $_[1]; > my @list = @_[2.. (scalar @_ - 1)]; > .... > } > > or
sub mySub { my ( $first, $last, @list ) = @_; .... } John -- Perl isn't a toolbox, but a small machine shop where you can special-order certain sorts of tools at low cost and in short order. -- Larry Wall -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/