Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to I/O problems...what am I missing?

           $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.";

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://198164]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2024-04-24 21:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found