>     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?

-thanks

> [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] wrote:
> :
> : Can someone show me how to pass multiple arrays argument?
> :
> : ie -
>
>     Read perlsub. You can use references.
>
> :
> : ...
> : mysub(@a, @b, @c);
>
>     mysub( [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] );
>
> : ...
> :
> : sub mysub
> : { my @a = ? #arg1 an array $_[0] is not working
> :   my @b = ? arg2 another array $_[1] is not working
> :   my @c = ? arg3 another array $_[2] is not working
> : }
>
>     sub mysub {
>         my( $x, $y, $z ) = @_;
>             .
>             .
>             .
>     }
>
>
> HTH,
>
> Charles K. Clarkson
> --
> Head Bottle Washer,
> Clarkson Energy Homes, Inc.
> Mobile Home Specialists
> 254 968-8328
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-----------------------------------------
eMail solutions by 
http://www.swanmail.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to