in reply to Re: How to split big files with Perl ?
in thread How to split big files with Perl ?
I'm sorry but this is really not good.
Aside from the fact that it doesn't compile, what is my $split_fh = "$fh" . 'split'; supposed to do? print $buf $outfile; or opening $out_file in read mode are pretty obvious errors. No error handling on open or read is also not great.
Do you think that reading 2GB of the input file into memory at a time is a very efficient way to go about it?
What happens when the size of the file is not exactly divisible by 5?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to split big files with Perl ?
by james28909 (Deacon) on Dec 26, 2014 at 19:01 UTC | |
by ww (Archbishop) on Dec 26, 2014 at 19:11 UTC | |
by LanX (Saint) on Dec 26, 2014 at 19:15 UTC | |
by Anonymous Monk on Dec 26, 2014 at 21:41 UTC | |
by Anonymous Monk on Dec 26, 2014 at 19:17 UTC | |
by james28909 (Deacon) on Dec 26, 2014 at 19:29 UTC | |
by GotToBTru (Prior) on Dec 27, 2014 at 03:23 UTC | |
by marto (Cardinal) on Dec 26, 2014 at 21:35 UTC |