in reply to Problem truncating a huge file
Your next step should be to run the following program:
If that says that uselargefiles should be defined, then you've found a Perl bug and should file a perlbug with explanation and sample code to produce it. (I would suggest having sample code that writes the file that you then fail to truncate.)use Config; print "$Config{uselargefiles\n";
If uselargefiles is not defined then it would be best to install a version of Perl that can handle large files. If you want a workaround you should rename the large file to something else, and then do a read/write loop to write a copy that stops at the desired size. Then delete the original. Be warned that this utility will not be as fast as the native function.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem truncating a huge file
by abhishek_akj (Initiate) on Aug 27, 2009 at 11:43 UTC | |
by tilly (Archbishop) on Aug 27, 2009 at 17:21 UTC |