On Oct 17, NYIMI Jose (BMB) said:

>> sub new {
>>      my $class = shift;
>>      $class = ref $class if ref $class;
>>      my %args = @_;
>>      my $self = bless { }, $class;
>>
>>      # needs hierarchical initialization here
>>
>       $self->SUPER::initialize(%args);

You might want to use Damian Conway's NEXT module.  It lets you do

  $self->NEXT::initialize(%args);

which is like SUPER::, but it's automagically recursive, like my code was
(more or less).

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.
[  I'm looking for programming work.  If you like my work, let me know.  ]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to