Isn't there some perl lore surrounding this idiom? I seem to remember someone writing a 500 line module to localize a filehandle, only to have the perl community stumble upon this construct a few weeks later?my $fh = do {local *FH};
-Blake
In reply to Re: Re (tilly) 1: auto-vivifying file handles
by blakem
in thread auto-vivifying file handles
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |