in reply to On timely destruction?
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: •Re: On timely destruction?
by Elian (Parson) on Aug 28, 2002 at 00:50 UTC |
In Section
Seekers of Perl Wisdom