Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: How to read a file and add value for same key

by nevdka (Pilgrim)
on Jul 31, 2013 at 05:30 UTC ( #1047173=note: print w/replies, xml ) Need Help??

in reply to How to read a file and add value for same key

Hi tony_ucdavis,

I only recently started with Perl myself. The tutorials section has a lot of really good information on how to start writing scripts and programs. Also, see if you can find a copy of the book 'Learning Perl', I have found it very useful.

You'll want to use the open function to open the file, a while loop to read the data in, and the print function to write everything out. If you want to store the data first, you can use a hash.

  • Comment on Re: How to read a file and add value for same key

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1047173]
[Eily]: well, I didn't get the joke and I didn't get the image either because the proxy won't let me
[erix]: Leasure Suit L.
[LanX]: THEY are restricting your Internet?
[LanX]: join the fight brother
[Eily]: probably because I'm an underpriviledged millenial

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (13)
As of 2017-03-23 17:46 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (292 votes). Check out past polls.