maard has asked for the wisdom of the Perl Monks concerning the following question:
Dear monks, today i run into code which made me muse about diversity of this life.
$object->Some:Class::method(@args);
What does this mean and why would someone need to do such call?
Looks like this is the same as Some::Class::method($object, @args), but with respect to inheritance.
Another thing came to mind is $self->SUPER::new, which i always understood as "Call the new method of the superclass of $self's class". Is the SUPER some kind of magic (any relation to UNIVERSAL? e.g. each class in addition to isa and can has SUPER?)
Please point me to docs.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: $what->Does::This::mean( $anyway )
by tobyink (Canon) on Mar 15, 2012 at 08:40 UTC | |
Re: $what->Does::This::mean( $anyway )
by kcott (Archbishop) on Mar 15, 2012 at 07:10 UTC | |
Re: $what->Does::This::mean( $anyway )
by nemesdani (Friar) on Mar 15, 2012 at 06:43 UTC | |
Re: $what->Does::This::mean( $anyway )
by trwww (Priest) on Mar 15, 2012 at 07:11 UTC | |
Re: $what->Does::This::mean( $anyway )
by Khen1950fx (Canon) on Mar 15, 2012 at 08:18 UTC |