in reply to Re: Re: Re: Re: Re: Which name for a new cpan module?
in thread Which name for a new cpan module?

*{"Xxx::Ivy::"} = *{"Ivy::"}; is this different from the previous proposal based on use base Net::Ivy; ?

Where is it possible to find the doc of the 'use base ...;' construct?

Replies are listed 'Best First'.
Re: Re^6: difference between *{"Xxx::Ivy::"} = *{"Ivy::"}; and use base Net::Ivy; ?
by simonm (Vicar) on Nov 25, 2003 at 22:07 UTC
    ... is this different from the previous proposal...

    Yes. The "use base" technique makes one class inherit from the other, whereas this technique makes the two namespaces equivalent.

    A key difference is that inheritance only works for method calls, whereas namespace aliasing works for both methods and function calls.

    Where is it possible to find the doc of the 'use base ...;' construct?

    The base module is included with Perl, so you should be able to run perldoc base for documentation.