On 07/09/2013 13:43, Karol Bujaček wrote:

   print Dumper(@_);        # just look how the @_ looks like

Consider: print Dumper( \@_ );


   my($animals, $digits) = @_;

   my @animals = @$animals; # dereference
   my @digits = @$digits;   # dereference

The comment is inaccurate.

Why would you want to copy the arrays?


   print Dumper(@animals, @digits); # just look ...

Consider: print Dumper( $animals, $digits );

--
Ruud


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to