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 (Hermit) 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.