use Sub::ScopeFinalizer qw( scope_finalizer ); { my $old_fh = select($fh); my $sentry = scope_finalizer { select($old_fh); }; ... }
In reply to Re: can the default file handle be localized?
by ikegami
in thread can the default file handle be localized?
by perl5ever
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |