3 ms·
Yeah it's pretty archaic. Shortest hand way of doing it is like this: sub method { my ($self, $a, $b, $c) = @_; } $self being a reference to the curre
by benbristow 6y ago
Yeah it's pretty archaic. Shortest hand way of doing it is like this:
sub method {
my ($self, $a, $b, $c) = @_;
}
$self being a reference to the current module (ala Javascript's 'this')
- cutler 6y ago$self is only for OOP so not needed in a regular subroutine.