in reply to Filling a File with While
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Filling a File with While
by koaps (Novice) on Nov 05, 2008 at 23:23 UTC |