We are testing against strict refs not vars.
$ perl -w -Mstrict -E 'my $c; say @$c' Can't use an undefined value as an ARRAY reference at -e line 1. $ perl -w -Mstrict -E 'my $c; say @$c=(1..3)' 123 $
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
In reply to Re^3: Dereference of undefined value OK under strictures?
by LanX
in thread Dereference of undefined value OK under strictures?
by AnomalousMonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |