Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
benbristow
5y ago
0 comments
Share
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')
0 comments
default
newest
oldest
cutler
5y ago
$self is only for OOP so not needed in a regular subroutine.
j
/
k
navigate · click thread line to collapse