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

Re: Looking for appropriate Regex (Text::CSV)

by Anonymous Monk
on Apr 07, 2013 at 09:22 UTC ( #1027338=note: print w/replies, xml ) Need Help??

in reply to Looking for appropriate Regex

Now you know how to avoid the problem :)(look around Parse CSV stream, be forgiving on bad lines ) Use Text::CSV or Text::xSV

Examples at

 [CSV hash ] CSV hash
Best way to match a hash with large CSV file
perl hash to CSV using Text::CSV_XS
Issue parsing CSV into hashes?
Veriable Length Array/Hash derived from CSV to populate an XML
extracting data from CSV files and making hash of hashes
Re^2: build hash from csv file
Encoding a hash in perl before saving it as a CSV file
hash from CSV-like structure
Read the csv file to a hash....
Parsing CSV into a hash
build hash from csv file
Converting a CSV list to a list of hashrefs naming the fields

merging csv files into a third file preserving column & row

Replies are listed 'Best First'.
Re^2: Looking for appropriate Regex (Text::CSV)
by better (Acolyte) on Apr 07, 2013 at 13:12 UTC

    Hello again, Anonymous Monk!

    Thanks a lot for your extensive response!

    I'm fighting not to get buried in this avalanche of wisdom ;-)

    Seriously, I appreciate your help, which seems to guide me through my whole project.

    I can find already hints in your list of links for the next step: parsing a CSV into a hash, which I will need for tagging the image files, I imported before (s. my node:

    Looking up elements of an array in another array!


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1027338]
[choroba]: It renders correctly in pm-cb-g
[erix]: heh
[Veltro]: is it a question?
[erix]: or a conundrum?
[Veltro]: and if I may give you a hint, use qr/\xC2\xB0|\xB0/ instead of the degree sign

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2018-07-17 16:10 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (372 votes). Check out past polls.