summaryrefslogtreecommitdiff
path: root/devel/p5-Sub-Name/pkg-descr
blob: fa9f729ca5390bf78ff05dc0b1340a75e9a3160b (plain)
1
2
3
4
5
6
7
8
9
The subname() function exported by this module allows one to assign new
names to Perl subroutine.  This is different from glob-assignment, since
the name is only used for informational purposes (caller, Carp, etc.).

Note that for anonymous closures (subs that reference lexicals declared
outside the sub itself) one can name each instance of the closure
differently, which can be very useful for debugging.

WWW: https://metacpan.org/release/Sub-Name