Assigns a new name to referenced sub

Edit Package perl-Sub-Name
http://search.cpan.org/dist/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.26.tar.gz 0000084898 82.9 KB
cpanspec.yml 0000000480 480 Bytes
perl-Sub-Name.changes 0000006365 6.22 KB
perl-Sub-Name.spec 0000001732 1.69 KB
Revision 37 (latest revision is 40)
Tina Müller's avatar Tina Müller (tinita) accepted request 735804 from Tina Müller's avatar Tina Müller (tinita) (revision 37)
- updated to 0.26
   see /usr/share/doc/packages/perl-Sub-Name/Changes
  0.26      2019-10-05 22:23:12Z
      - no changes since 0.25
  
  0.25      2018-04-21 14:38:45Z (TRIAL RELEASE)
      - fix "Undefined symbol "DPPP_my_croak_xs_usage"" error on some perls
        (RT#125158)
  
  0.24      2018-04-21 08:15:30Z (TRIAL RELEASE)
      - small internal changes to bring implementation in line with changes to
        Sub::Util (Graham Knop)
  
  0.23      2016-10-23 04:33:37Z (TRIAL RELEASE)
      - test for renaming lexical subs, which should work on perl 5.22+. (PR#10,
        Graham Knop)
  
  0.22      2016-10-17 01:41:42Z (TRIAL RELEASE)
      - %DB::sub is now populated correctly for sub names with wide characters
        or nulls. (PR#9: Graham Knop, Leon Timmermans, Reini Urban)
      - better perl 5.6 compatibility by lowering prereqs of core modules
Comments 0
openSUSE Build Service is sponsored by