I'd be very surprised if a pure-Perl script beat a native utility like cut.
If cutting out of the columns of these large files is a bottleneck, your options include:
See perlipc.open my $cutter, "-|", 'cut', '-d,', '-f"1-15"', $mongo or die "Fork failed: $!\n"; go_to_town( $_ ) while <$cutter>; close $cutter;
I like the second option best.
the lowliest monk
In reply to Re: cut vs split (suggestions)
by tlm
in thread cut vs split (suggestions)
by sk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |