Hello all,

I running into problems again: This time I'd like to fill a hash with
arrays, however, the following push command generates a syntax error.
Any idea why

My %dirHash = ();

foreach my $item(@dirArray) {
    $prefix = substr($item, 0,4);
    push @dirHash{$prefix}, $item;
}


Thanks

Daniel

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to