Michael Gale <mailto:[EMAIL PROTECTED]> wrote: : I am passing the reference of an to the subroutine, which using : (shift) assigns the first scaler to my scaler array_ref. So now : array_ref scaler is equal to the passed scaler allowing me to use : array_ref as a reference. : : Correct ?
Yes, except you're misspelling 'scalar'. Perl places a reference to @array into @_ when you call the subroutine. When you use 'shift', you remove the first item from @_ (which is an array reference) and set it to $array_ref. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>