new_user has asked for the wisdom of the Perl Monks concerning the following question:
PROBLEM: It stops working (i havnt been able to trace the reason) apparently at random, and then keeps failing to open the FILEHANDLE. Any reason why the open on file handle fails?open(OUTFILE, ">$save_directory\/$file_name"); while ($bytes = read($file_handle, $buffer, 1024)) { $bytes_read += $bytes; print OUTFILE $buffer; } close OUTFILE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: random problem with read
by sauoq (Abbot) on Oct 16, 2002 at 16:47 UTC | |
|
Re: random problem with read
by rdfield (Priest) on Oct 16, 2002 at 16:48 UTC | |
|
Re: random problem with read
by true (Pilgrim) on Oct 16, 2002 at 16:59 UTC | |
|
Re: random problem with read
by graff (Chancellor) on Oct 17, 2002 at 06:03 UTC |