develooper Front page | perl.perl5.porters | Postings from April 2007

Re: use parent 'Some::Class' @import_list;

Thread Previous | Thread Next
Ævar Arnfjörð Bjarmason
April 29, 2007 16:57
Re: use parent 'Some::Class' @import_list;
Message ID:
On 4/29/07, Ovid <> wrote:


use parent qw( a b );

would be exactly equivalent to:

use base qw( a );
BEGIN { a->import('b') }


FWIW `parent' as opposed to `base' doesn't make me think "ah, this'll
call import too" as much as it makes me wonder what (if any) is the
difference between a base and a parent package.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About