mosh has asked for the wisdom of the Perl Monks concerning the following question:
I've got this error:
Can't use an undefined value as an ARRAY reference at line ...(the foreach line...)
What's the meaning of the mentioned error?$self->{entries} = []; push(@{$self->{entries}}, { a => $a, b => $b}); my $entries = ''; foreach (my $i=0; $i<scalar(@{$self->{entries}}); $i++) { ... }
Mosh.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't use an undefined value as an ARRAY...
by jeffa (Bishop) on May 17, 2005 at 17:52 UTC | |
|
Re: Can't use an undefined value as an ARRAY...
by cog (Parson) on May 17, 2005 at 17:48 UTC | |
|
Re: Can't use an undefined value as an ARRAY...
by Anonymous Monk on Oct 08, 2014 at 20:23 UTC |