in reply to Re: Is it legal to create subs in a module?
in thread Is it legal to create subs in a module?

Doesn't both your's and lestrrat's answer(s) need to ignore the DESTROY method? Like:
return if $AUTOLOAD =~ /::DESTROY$/;

Replies are listed 'Best First'.
Re: Re: Re: Is it legal to create subs in a module?
by davorg (Chancellor) on Oct 11, 2001 at 20:17 UTC

    Good point. I'd probably get round that by defining a dummy DESTROY method that does nothing.

    --
    <http://www.dave.org.uk>

    "The first rule of Perl club is you don't talk about Perl club."