Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by choroba (Abbot)
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 ]; }
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re^2: selecting columns from a tab-separated-values file
Download Code
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 (Beadle) 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 perusing the Monastery: (4)
As of 2014-10-25 09:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (142 votes), past polls