- or download this
my $nbLinesPerFile=$totalCount;
- or download this
my $nbLinesPerFile=int( $totalCount / $nbFiles );
- or download this
use Tie::File;
use Carp;
...
or croak("failed to tie '$filename' - $!");
scalar @array
}
- or download this
use File::Split;
File::Split
->new({keepSource=>'1'})
->split_file({parts=>$nbFiles},$newfile);