dave8775 has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
what is the difference between these declarations?
my(@a) = (); my($b) = {}; my(@c) = []; my(%d) = ();
It seems like we can build Hashes of hashes, array of hashes, record structures etc, either by using pointer syntax or some other way... I am getting somewhat confused on what is the best most efficient way.. All declarations above seem to work without any noticeable difference *shrug*.
David
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: data types
by sauoq (Abbot) on Jan 11, 2003 at 01:14 UTC | |
|
Re: data types
by Arien (Pilgrim) on Jan 11, 2003 at 01:25 UTC | |
|
Re: data types
by Wysardry (Pilgrim) on Jan 11, 2003 at 01:55 UTC | |
|
Re: data types
by Hofmator (Curate) on Jan 11, 2003 at 15:41 UTC | |
|
Re: data types
by Coruscate (Sexton) on Jan 11, 2003 at 22:45 UTC |