in reply to valid filehandle
If you have a filehandle (to a real file rather than a terminal or pipe etc) that was opened elsewhere and you want to simply test if it is still valid before attempting to use it, you can use tell. The function will return -1 if the file has been closed, was never opened, and produces no warning messages.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: valid filehandle
by perlplexer (Hermit) on Mar 21, 2003 at 03:56 UTC |