SUPER is a class that controls the superclass of the current class. Look here: http://search.cpan.org/~chromatic/SUPER-1.17/lib/SUPER.pm
So, what that means is, run the encrypt method/subroutine/function of the superclass of the current class. Something I would highly recommend is dive into Beginning Perl write a load of just little programs that maybe are useful or maybe not. For example, write a program that lets you experiment with regular expressions, by taking a string input and then taking an expression input then see if it matches. On 12/5/09, 120 <[email protected]> wrote: > Hi, > > I'm in my 50's and new to Perl, and I love it! Wish I discovered it > years ago :-( > > Slowly I'm learning bits an pieces but find myself getting confused at > times. I have that situation today. > > I've looked at this: > > sub encrypt { > my $self = shift; > my $xx = $$self; > #.. cut stuff I do understand > > return $self->SUPER::encrypt(); > } > > Could someone help me with the Perl to English here? > I get that $self is shifting the arguement. > I think I get that $xx is a reference to $self? > I don't get at all: return $self->SUPER::encrypt(); > > Is this assigning the $self to the results of a call to a class called > SUPER's method encrypt? > > > > > > -- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > http://learn.perl.org/ > > > -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
