Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Using Split to load a hash

by graff (Chancellor)
on Aug 19, 2006 at 16:11 UTC ( [id://568368]=note: print w/replies, xml ) Need Help??


in reply to Using Split to load a hash

If any given name or address in the file is liable to contain a comma, and the file has quotation marks around such values, then you'll want to use one of the modules for parsing CSV (comma-separated-value) files, instead of using split: Text::CSV_XS or Text:xSV. (There's Text::CSV as well, but it's older and more limited than the others.)

(In fact, even if your input data is really simple and has no quoted fields containing commas, you might still want to use one of those modules -- or at least look at their docs.)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (7)
As of 2024-03-29 15:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found