Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: selecting columns from a tab-separated-values file

by choroba (Chancellor)
on Jan 21, 2013 at 23:36 UTC ( #1014522=note: print w/replies, xml ) Need Help??


in reply to Re: selecting columns from a tab-separated-values file
in thread selecting columns from a tab-separated-values file

Limiting the splice makes it even faster:
sub trySplitSliceLimit { my @capture = (split ' ', $line, 7)[ 0, 2, 5 ]; }
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^3: selecting columns from a tab-separated-values file
by Kenosis (Priest) on Jan 21, 2013 at 23:40 UTC

    Yes--excellent! Will modify my posting to include this option.

Re^3: selecting columns from a tab-separated-values file
by ibm1620 (Scribe) on Jan 24, 2013 at 04:17 UTC
    This turns out to make the biggest difference, far and away. Of course, it depends on what fields are chosen - in particular, where the rightmost one is.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2016-10-01 03:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (574 votes). Check out past polls.