in reply to Re: Re: I'm looking for some 'heavy magic'
in thread I'm looking for some 'heavy magic'
I bet that you've several times have heard "use references as variable names". That is a good way to describe references, and it works here too. Having $r = \@x, @$r->[0] will be the same as @x->[0]. So it is indeed the same issue as in perldelta.use strict; my $r = [qw/foo bar/]; print $r->[0]; # 'foo' print @$r->[0]; # 'foo', due to bug. print @{$r->[0]}; # Can't use string ("foo") as an ARRAY ref...
|
|---|