Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: splitting a file

by Samy_rio (Vicar)
on Jul 05, 2007 at 06:02 UTC ( [id://625000]=note: print w/replies, xml ) Need Help??


in reply to splitting a file

Hi boby, this file split works under Windows,

use strict; use warnings; use File::Split; my $fs = File::Split->new({keepSource=>'1'}); my $filename = 'E:\test\text.txt'; my $size = (stat($filename))[7]/1024/1024; #####Based on Number of Files my $files_out = $fs->split_file({'parts' => sprintf("%.0f",($size/512) +)}, $filename);

First look into How do I post a question effectively? and How (Not) To Ask A Question

ikegami++

Regards,
Velusamy R.


eval"print uc\"\\c$_\""for split'','j)@,/6%@0%2,`e@3!-9v2)/@|6%,53!-9@2~j';

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://625000]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-03-28 18:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found