There's more than one way to do things | |
PerlMonks |
Re: I/O problems...what am I missing?by sauoq (Abbot) |
on Sep 16, 2002 at 05:58 UTC ( [id://198164]=note: print w/replies, xml ) | Need Help?? |
$names[$sub-1] = $tem; That's a typo. You probably want $names[$sub-1] = $temp2; print "\t$names[$ctr] scored $scores[$ctr]\n"; Another typo. Your array is named @score not @scores Since you are splitting on colons, you might find an empty field at the end of your data. I don't think that will break anything in this case though. -sauoq "My two cents aren't worth a dime.";
In Section
Seekers of Perl Wisdom
|
|