Assigns a new name to referenced sub

Edit Package perl-Sub-Name

This module has only one function, which is also exported by default:

subname NAME, CODEREF

Assigns a new name to referenced sub. If package specification is omitted in
the name, then the current package is used. The return value is the sub.

The name is only used for informative routines (caller, Carp, etc). You won't
be able to actually invoke the sub by the given name. To allow that, you need
to do glob-assignment yourself.

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

Refresh
Refresh
Source Files
Filename Size Changed
Sub-Name-0.12.tar.gz 0000025498 24.9 KB
perl-Sub-Name.changes 0000002903 2.83 KB
perl-Sub-Name.spec 0000001723 1.68 KB
Revision 22 (latest revision is 29)
Stephan Kulow's avatar Stephan Kulow (coolo) accepted request 250226 from Stephan Kulow's avatar Stephan Kulow (coolo) (revision 22)
- updated to 0.12
     - fix licence in LICENSE and pod
 
 0.11      2014-08-20 04:44:25Z (TRIAL RELEASE)
     - move variable declaration to fix warning under
       -Werror=declaration-after-statement, to allow compilation under MSVC
       (J.R.Mash, github #3)
 
 0.10      2014-08-16 00:46:35Z (TRIAL RELEASE)
     - converted distribution packaging to Dist::Zilla
 
 0.09      2014-08-09
     - Copy the contents of the %DB::sub entry if it exists; fixes
       Devel::NYTProf's anon sub handling (RT#50524, ilmari)
 
 0.08      2014-08-04
     - Fix leak when setting a fully-qualified name (ilmari, github#1)
Comments 0
openSUSE Build Service is sponsored by