As for your last-but-one example: > "You don’t even get a warning for a redefined subroutine." If you "use warnings", you get your warning (checked in perl 5.22 and 5.26): Subroutine main::spea...
https://www.effectiveperlprogramming.com/2015/01/named-lexical-subroutines/#comment-22660
It seems that after defining speak as a my sub that any later sub definitions for speak are then treated lexically. That seems like the wrong behaviour to me In the wild since external modules ha...
https://www.effectiveperlprogramming.com/2015/01/named-lexical-subroutines/#comment-4301
In reply to Paul Seamons. They never worked as private methods, but even if I ignore all tha...
https://www.effectiveperlprogramming.com/2015/01/named-lexical-subroutines/#comment-3673
In reply to Joseph Brenner. If you have private methods, a subclass isn't supposed to know a...
https://www.effectiveperlprogramming.com/2015/01/named-lexical-subroutines/#comment-3672
I would go further and say that you should take it easy on using coderefs... I had to maintain some code by someone who liked the "clever" trick of using coderefs to get lexically scoped subs ins...
https://www.effectiveperlprogramming.com/2015/01/named-lexical-subroutines/#comment-3641