Relevant recent discussion: How Are Attributes Useful? by Limbic~Region.
This RPC article on perl.com talks about building a list of externally-callable functions by prefixing those subroutines with (for example) 'r_'. Then looping over the package glob entries to find those subroutines and then mapping subroutine name (e.g.) do_this to r_do_this in the symbol table.
Why not use subroutine attributes instead, and search for those?
Strikes me as much nicer than:sub do_this :callable { ... }
sub r_do_this { ... }
In reply to A useful use of Attributes? by fireartist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |