kreetrapper has asked for the wisdom of the Perl Monks concerning the following question:
The loop where the arrays will be populated looks like this:my %filehash = ("First Case"=>[], "Second Case"=>[], "Third Case"=>[], "Fourth Case"=>[]);
But now Eclipse (with EPIC) will not compile my code. The error message is:foreach my $file (@files) { if (<first case>) { push($filehash{"First Case"},$file); } <further checks> }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with Populating a Hash of Arrays
by jwkrahn (Abbot) on Jan 09, 2009 at 07:41 UTC | |
by kreetrapper (Scribe) on Jan 09, 2009 at 07:50 UTC |