Luke Palmer skribis 2005-12-22 7:42 (+0000): > Recently, I believe we decided that {} should, as a special case, be > an empty hash rather than a do-nothing code, because that's more > common.
I think it should be both. my $foo = {}; $foo(); # It was a sub my $foo = {}; $foo<bar> = 1; # It was a hash It's not as if we're allergic to intelligent autovivifithingy... :) > while $x-- && some_condition($x) {} > Here, while is being passed a hash Why? Doesn't while's signature specifically prescribe a sub there, and if it does, then wouldn't it be just a bit too silly to stick to {} being a hash? Juerd -- http://convolution.nl/maak_juerd_blij.html http://convolution.nl/make_juerd_happy.html http://convolution.nl/gajigu_juerd_n.html