Perl Monk, Perl Meditation | |
PerlMonks |
Re^3: lexical sub vs subroutine referenceby NERDVANA (Curate) |
on Jul 26, 2024 at 14:21 UTC ( [id://11160778]=note: print w/replies, xml ) | Need Help?? |
I think I could have processed the contents of that blog post three times as fast if he had just used normal indenting.
So I went through all of that, and in the end his conclusion is "it's insanely broken because you cant use them for sort until 5.22 and "our sub" can accidentally redefine methods". So, maybe don't use "our sub", but "my sub" would seem to be perfectly fine. I much prefer to call a sub by name rather than as a function-deref notation from a lexical variable.
In Section
Seekers of Perl Wisdom
|
|