Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2016-10-24 22:39 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (310 votes). Check out past polls.