Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Reading your input

by space_monk (Chaplain)
on Nov 01, 2012 at 13:21 UTC ( #1001825=note: print w/ replies, xml ) Need Help??


in reply to Building a data structure - %HoH, %HoA?

You're reading in CSV data, and some of it may contain comma's and other pesky characters. I am presuming that for example, strings like location_4 would be something like "London, England" in the real data.

So use CPAN libraries such as Text::CSV to read your CSV data instead of simply reading it line by line and using split


Comment on Reading your input

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (13)
As of 2015-07-28 10:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (254 votes), past polls