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

Re: Sorting Tab file

by ar0n (Priest)
on Apr 25, 2002 at 05:43 UTC ( #161867=note: print w/ replies, xml ) Need Help??


in reply to Sorting Tab file

You needn't change the split, but you could use a array slice in on the loop (only get the first and fifth column):

my $row = 0; while (<TABFILE>) { chomp; my @fld = split /\t/; my $col = 0; foreach my $token (@fld[0,4]) { $worksheet->write($row, $col, $token); $col++; } $row++; }


Comment on Re: Sorting Tab file
Download Code
Re: Re: Sorting Tab file
by raj8 (Sexton) on Apr 25, 2002 at 06:04 UTC
    Thanks for your reply. I have been searching CPAN and docs on a way to grab those elements. Once again, thanks -raj

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (11)
As of 2014-07-11 02:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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








    Results (217 votes), past polls