in reply to ->isn't('UNIVERSAL') - stopping UNIVERSAL pollution?

package Object::Deadly; @ISA = qw(Object::Deadly::Backstop); ... package Object::Deadly::Backstop; sub AUTOLOAD { die }

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^2: ->isn't('UNIVERSAL')?
by diotalevi (Canon) on Sep 05, 2006 at 20:31 UTC

    I'm pretty sure that doesn't work. First perl looks through all of ISA to see if the method can be found by name. If that fails it looks through all of ISA for AUTOLOAD by name. I can name an AUTOLOAD but that doesn't prevent something named in UNIVERSAL from being found.

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊