sunil@perl has asked for the wisdom of the Perl Monks concerning the following question:
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Array reference error
by tobyink (Canon) on Feb 27, 2014 at 14:12 UTC | |
by AnomalousMonk (Archbishop) on Feb 27, 2014 at 19:32 UTC | |
by tobyink (Canon) on Feb 27, 2014 at 22:39 UTC | |
by AnomalousMonk (Archbishop) on Feb 28, 2014 at 19:22 UTC | |
|
Re: Array reference error
by toolic (Bishop) on Feb 27, 2014 at 13:48 UTC |