Peter [link|http://www.ubuntulinux.org|Ubuntu Linux] [link|http://www.kuro5hin.org|There is no K5 Cabal] [link|http://guildenstern.dyndns.org|Home] Use P2P for legitimate purposes!
\n@arr = [];\n@hash_of_array_references = {};\n@hash_of_array_references['foo'] = @arr;\n\n# Now to push a value on the stack\n@hash_of_array_references['foo'].push('bar');\n
Peter has a point. When you start getting into nested references, Perl's syntax gets unnecessarily ugly.
Cheers, Ben
I have come to believe that idealism without discipline is a quick road to disaster, while discipline without idealism is pointless. -- Aaron Ward (my brother)
References in Perl are teh sukc. I want to just put a damn array in a hash. I don't want to have to worry about whether it's a reference or not. And yes, sometimes that makes certain things easier when you make a distinction based on the context, but dammit, most of the time I really don't need that. :-P