Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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
Replies are listed 'Best First'.
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?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (13)
As of 2015-10-13 17:57 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (312 votes), past polls