Ovid wrote: > ----- Original Message ---- > >> From: Michael G Schwern <schw...@pobox.com> >> >>>> %$Test = %$child; >>>> >>>> Watch out for edge cases of when subtest() dies, make sure the >>>> parent's guts >>>> get put back. >>> "local" should be good for doing that right? >> Normally, yes. local $Test will localize the value of $Test, which is a >> reference, not its guts. local %$Test would seem to be the right thing, but >> I'm not sure if that will DWIM. > > I've generally been extremely pleased with how robust 'local $hash->{value}' > is, > but you can't localize lexical variables.
The Test::Builder singleton is now a package global. -- Just call me 'Moron Sugar'. http://www.somethingpositive.net/sp05182002.shtml