my %hash; open(ANSWERTALLY, "answertally.dat"); while(<ANSWERTALLY>) { next unless /^Running totals:/ .. /^Averages:/; next if /^Running totals:/; last if /^Averages:/; my ($key, $value) = split(/\s=\s/); chomp($value); $hash{$key} = $value; } close(ANSWERTALLY);
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: reading from middle of file
by davorg
in thread reading from middle of file
by guisilva
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |