Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: splitting a file

by Samy_rio (Vicar)
on Jul 05, 2007 at 06:02 UTC ( #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';


Comment on Re: splitting a file
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2014-09-02 03:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (18 votes), past polls