Hai Monks, I am a perl beginner and trying to experiment on arrays. I came across this error in one of my experiment, Can't use an undefined value as an ARRAY reference at p42svn.pl line 844. The code is as shown below,
Thanks in advance@{$res{'act'}} = sort { return 0 unless $a->{'act'} =~ /^move/ and $b->{'act'} =~ /^mo +ve/; return $a->{'act'} cmp $b->{'act'}; # add < delete } @{$res{'acts'}}; return \%res;
In reply to Array reference error by sunil@perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |