Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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++; }

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 making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2016-10-23 12:48 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (301 votes). Check out past polls.