Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Fun with chomp

by Tux (Canon)
on Mar 11, 2013 at 15:44 UTC ( [id://1022817]=note: print w/replies, xml ) Need Help??


in reply to Fun with chomp

Did you trie to read the file with Text::CSV_XS? It does handle tab separated data as exported by Excel fine when instructed to do so (no need for chomps):

use Text::CSV_XS; open my $fh, "<", "file.tsv"; my $csv = Text::CSV_XS->new ({ binary => 1, sep_char => "\t", auto_dia +g => 1 }); while (my $row = $csv->getline ($fh)) { # … } close $fh;

Enjoy, Have FUN! H.Merijn
mod://Text::CSV_XS

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-20 00:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found