in reply to Problem with multiple loops
Hi chinamox, Try to use File::Split module.
use File::Split; my $fs = File::Split->new({keepSource=>'1'}); #####Based on Number of Lines my $files_out = $fs->split_file({'lines' => 1000},'E:\test\test.xml') +; #####Based on Number of Files my $files_out = $fs->split_file({'parts' => 10},'E:\test\test.xml');
I have tested in Windows only. Not in Unix.
Regards,
Velusamy R.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem with multiple loops
by chinamox (Scribe) on Oct 24, 2006 at 13:26 UTC | |
by Melly (Chaplain) on Oct 24, 2006 at 13:56 UTC | |
by chinamox (Scribe) on Oct 24, 2006 at 14:08 UTC | |
by davorg (Chancellor) on Oct 24, 2006 at 14:00 UTC |