update please ignore this and listen to Zaxo :-)eval { my $pos = $fh->tell; $fh->print('1'); $fh->seek($pos); }; my $ready_for_writing = ($@) ? 0 : 1;
In reply to Re: How do I tell if a handle is open for writing?
by jZed
in thread How do I tell if a handle is open for writing?
by DrWhy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |