sub do_fh (*) { # make use of @INC my $FH = shift() or return undef; unshift(@INC, sub { shift(@INC) and return $FH }); $@ = ""; my @ret = do $FH; # remove %INC side-effect no warnings; delete $INC{$FH}; return @ret; }
In reply to Re: do FILEHANDLE ?
by repellent
in thread do FILEHANDLE ?
by tfoertsch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |