in reply to difference between \() and []

You're also confusing another concept - hashes are just lists that do something special with every other value. This is why my %x = (); and my @x = (); work correctly. (=> is just a glorified comma that stringifies its LHS, in case you're wondering.)

And, it sounds like you didn't read the Camel book very closely. I'd suggest you take the time and (re)read it.

------
We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

Replies are listed 'Best First'.
Re: Re: difference between \() and []
by BUU (Prior) on Mar 24, 2004 at 21:29 UTC
    At the risk of nit picking, hashes aren't lists, they're hashes. You can assign a list to both an array and a hash and they do what you mean, but that doesn't make either of them lists.. =]