If you don't want that, simple use -s:
while (-s $filename < $size) { print $fh "Some Something "; }
Or maybe you have problems with buffering, try to turn on autoflush: $| = 1.
In reply to Re: Filling a File with While
by moritz
in thread Filling a File with While
by koaps
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |