Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: hash with identical keys

by brian_d_foy (Abbot)
on Dec 07, 2007 at 02:14 UTC ( [id://655567]=note: print w/replies, xml ) Need Help??


in reply to hash with identical keys

This exercise comes from the filehandle reference chapter. You're supposed to open files for each character and write to the correct file when you encounter a line of input. The hint from the end of the exercise is:

Hint: use a hash, keyed by the castaway name, holding IO::File objects for each output file. Create them as necessary.

The hash is for the filehandles, not the data. Give it another go, and if you need more of a hint, peek at the exercise answer. Good luck :)

--
brian d foy <brian@stonehenge.com>
Subscribe to The Perl Review

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-03-29 01:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found