Help for this page

Select Code to Download


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