in reply to Re^2: Split output by tabs
in thread Split output by tabs
is there a way of specifying certain columns to be printed? e.g the 10th,18th and 20th column?
One way to do it - use an array slice:
{ local $" = "\t"; print $OUT map "@{$_}[10,18,20]\n", sort { $a->[10] cmp $b->[10] } @ +out; }
See References quick reference.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Split output by tabs
by perlnoobster (Sexton) on Nov 13, 2012 at 09:52 UTC | |
by shmem (Chancellor) on Nov 13, 2012 at 10:07 UTC | |
by perlnoobster (Sexton) on Nov 13, 2012 at 10:10 UTC | |
by tobyink (Canon) on Nov 13, 2012 at 10:19 UTC |