<[EMAIL PROTECTED]> wrote: > > > sub mysub { > > my( $x, $y, $z ) = @_; > > Can I have three arrays instead? > > I know I can use $x->[0], $x->[1], etc. But can I make it a @x, @y, @z?
If you prototype your subroutine as sub mysub ([EMAIL PROTECTED]@\@) then you can subsequently call it as mysub(@x, @y, @z) or mysub @x, @y, @z but the arrays will actually be passed in as three array references. Does that help at all? Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]