in reply to Program can not read the contents of a small file that it has recently written!
For one thing, you're having precedence problems.
Either do
orclose FILE or die "die die";
Update: There's more to be done, but I'm not sure I have the strength
Real Update: You have a return in
your subroutine while loop.
return if $length <= ++$pos;
so you never get to your close which is outside
an infinite loop.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Program can not read the contents of a small file that it has recently written!
by lostcause (Monk) on Jun 26, 2001 at 03:32 UTC |