Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 taking refuge in the Monastery: (6)
As of 2015-07-03 21:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (56 votes), past polls