Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: read file line by line then do something and write to same file

by 2teez (Vicar)
on Jun 16, 2014 at 03:28 UTC ( [id://1089987]=note: print w/replies, xml ) Need Help??


in reply to read file line by line then do something and write to same file

hi john.tm,

I am trying to open a file for reading and writing. i open the csv file

Think of CSV files? At least think Text::CSV or Text::CSV_XS and you will do away with "hand-picking" of values.

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me
  • Comment on Re: read file line by line then do something and write to same file

Log In?
Username:
Password:

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

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

    No recent polls found