On Sat, May 22, 2004 at 04:25:43AM +0900, Dan Kogai wrote: > Hey, watch this! > > >% perl -le 'my $x=42; $x->[0]=3.14; print $x; print $x->[0]; print > >ref($x)' > >42 > >3.14 > > > >% perl -le 'my $x; $x->[0] = 3.14; print $x; print $x->[0]; print > >ref($x)' > >ARRAY(0x801180) > >3.14 > >ARRAY > > See the difference? The first one has 42 assigned a priori. I have > duplicated this even on good old 5.00503, not to mention 5.8.4. > Maybe you should try that again with use strict. RonaldThread Previous | Thread Next