I think this deserves at least a compile time warning and also a strict pragma to make it an error as it is most likely not what the programmer wanted.
-- Mark Biggar [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] > Ingo Blechschmidt skribis 2005-08-31 13:22 (+0000): > > @array = $arrayref; # really means > > @array = ($arrayref,); # same as > > @array = (); @array[0] = $arrayref; # thus > > say [EMAIL PROTECTED]; # always 1 > > # Correct? > > Yes, although at some point there was this weird notion of scalars > automatically dereferencing in list context, in this respect Perl 6 > currently is sane. > > > Juerd > -- > http://convolution.nl/maak_juerd_blij.html > http://convolution.nl/make_juerd_happy.html > http://convolution.nl/gajigu_juerd_n.html