It took a while, but I got the reference syntax down with the referencing calls like $$x[int] and @$x.
thanks > [EMAIL PROTECTED] <[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? > > <span class="soapbox"> > Question: If this is all that is relevant to your > question, why continue to quote the rest of the email? > The idea is to save bandwidth and quote only the > relevant part, then stop! > </span> > > > Read perlref. > > $x, $y, and $z are references to arrays. you can > use them as arrays with caution. If you use them as > @$x, @$y, and @$z any changes you make will affect > the original arrays. > > You can copy them if you need to temporarily > change their values: > > sub mysub { > my( $x, $y, $z ) = @_; > > my @dup_x = @$x; > > # change @dup_x > > I can't really help you more than that without > knowing what you are trying to do in the sub. > > HTH, > > Charles K. Clarkson > -- > Head Bottle Washer, > Clarkson Energy Homes, Inc. > Mobile Home Specialists > 254 968-8328 > > > > BTW, I used @x, @y, @z because $a and $b are special. > > > > > > > > > > ----------------------------------------- eMail solutions by http://www.swanmail.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]