2 ms·
Sorry, just getting back to this. Yeah, it has @_, and in the Perl object model, the first entry in the @_ array is a reference to the object, which is almost
by nocman 7y ago
Sorry, just getting back to this.
Yeah, it has @_, and in the Perl object model, the first entry in the @_ array is a reference to the object, which is almost always called $self.
Anyway, what people name the reference doesn't matter. The point is that it functions like 'this' and 'self' do in other languages, and it is very much required in object methods (which differ from normal subs in that they are passed that first argument automatically).