That's not an issue, because any new use of open should do a clean close, as if the variable has also gone out of scope.{ my $foo; open $foo, "<bar.txt"; print "Baz\n"; } { my $foo; open $foo, "<bar.txt"; print "xyzzy\n"; }
-- Randal L. Schwartz, Perl hacker
In reply to •Re: On timely destruction?
by merlyn
in thread On timely destruction?
by Elian
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |