Please use the <code> </code> tags around your code. It's barely readable.
This line is probably the cause of your problem:
foreach my {$line[10]}(keys %data) {
... but it's hard to suggest anything when we don't know what your code is supposed to do.
Take a look at the example of correct foreach use in the documentation that came with your Perl.
- Luke
In reply to Re: hash in perl
by blindluke
in thread hash in perl
by nono
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |