On Wed, Aug 29, 2001 at 11:23:53PM +0100, Nicholas Clark wrote:
> Although as 0x81095c8 corresponds to the address in @INC, there's nothing
> stopping the &(0x81095c8) stripper actually extracting the 0x81095c8 from
> it, and walking @INC to find a reference with that address. And if it finds
> one calling that reference.
>
> [Not quite sure what to do if it does not. Presumably this corresponds to
> @INC being modified between initial loading and later loading.
Or someone's being naughty. We're rapidly approaching easily-hackable
territory here:
sub Foo::Bar {
$me = \&Foo::Bar; $me=~s/CODE/&/;
require "$me/what/does/this/do?";
}
push @INC, \&Foo::Bar;
On second thoughts, this might be considered a feature...
Simon
Thread Previous
|
Thread Next