![]() |
|
Syntactic Confectionery Delight | |
PerlMonks |
Re: limit output filesizeby Transient (Hermit) |
on Jul 08, 2005 at 18:57 UTC ( #473540=note: print w/replies, xml ) | Need Help?? |
I ran this as a test:
the output was as follows (abridged): So it stopped close to, but not at, 50k because while the file is open, only full blocks are written. You may want to keep that in mind and make sure the cutoff is at the highest blocksize that is less than your threshold. This is AIX 5.1 on a JFS2 file system. I won't be able to speak for others Update: as an aside $|++ did nothing for this You could also keep tabs on your output size as well, if it is all under your control.
In Section
Seekers of Perl Wisdom
|
|