Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Fun with chomp

by Tux (Monsignor)
on Mar 11, 2013 at 15:44 UTC ( #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


Comment on Re: Fun with chomp
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2014-07-11 03:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (217 votes), past polls