A Divendres 21 Juliol 2006 22:14, [EMAIL PROTECTED] va escriure: > How do I pass an array to a subroutine in a manner that the array is > entirely contained in one element of @_, instead of having each element > mapped to elements of @_. > > for example, inside of the subroutine, I'd like to say > @z = @_[0]; > and have @z refer to the entire array I passed to the subroutine, rather > than just the first element which is the case now. > > > thanks, > [EMAIL PROTECTED]
Why don't you assign the full element to a $ variable and then pass this last one to the subroutine? -- Xavier Mas -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>