What is the difference between these declarations?
my (@a) = (); # @a contains an empty list my ($b) = {}; # $b contains a ref to an empty (unnamed) hash my (@c) = []; # @c contains a ref to an empty (unnamed) array my (%d) = (); # %d contains an empty list
You may want to (re-)read the documentation on basic data types and references and nested data structures.
— Arien
In reply to Re: data types
by Arien
in thread data types
by dave8775
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |