On Wednesday, July 3, 2002, at 01:13 , John W. Krahn wrote:
points to all for answering the OP's specific question.... >> sub eatArrays >> { >> my @array1 = @{$_[0]}; >> my @array2 = @{$_[1]}; >> >> ..blah.. >> } I guess my problem here is why are we worrying about the cool deference options - when I fear what we should be worrying about is say sub eatArray { my ($array1, $array2) = @_; croak "bad first argument\n" unless( ref($array1) eq 'ARRAY'); croak "bad second argument\n" unless( ref($array2) eq 'ARRAY'); ..... } since using @$array1 and @$array2 is really no mo better than the foo jam above... ESPECIALLY if they have scragged the values passed. cf: http://www.wetware.com/drieux/pbl/perlTrick/HA/ArrayRefPass.txt Where I get to show how the UGLIES get passed in with @_ by way of catching the Croak.... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]