Fun with local

pdcawley on 2001-11-09T10:38:13

local %{"${pkg}::"}; local $INC{package_as_path($pkg)}

Look ma, I can reload $pkg again! And it appears not to leak memory, but that could just me being over hopeful.

What I'd hoped to do was reload the package in its own little Safe compartment, but it turns out that if you do that bad things start to happen (like, you stop being able to see UNIVERSAL::can)