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