sub chunkit { my $filename = shift; use Tie::File; tie my @array, 'Tie::File', $filename or die "cant chunkit $filename : $!\n$^E "; splice @array, 0, -100; # remove all but last 100 untie @array; }
In reply to Re: reading files
by Anonymous Monk
in thread reading files
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |