From: Matthijs van Duin Date: Wed, 18 Aug 2004 17:56:51 +0000 (-0800) Subject: import Sub-Name 0.02 from CPAN X-Git-Tag: 0.02 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d73d8321f16899e7adbd8faf9d9c6db8b84fca12;hp=16c238946dc5ef5a2ddc13ebc0b57f3a0629f03e;p=p5sagit%2FSub-Name.git import Sub-Name 0.02 from CPAN git-cpan-module: Sub-Name git-cpan-version: 0.02 git-cpan-authorid: XMATH git-cpan-file: authors/id/X/XM/XMATH/Sub-Name-0.02.tar.gz --- diff --git a/Changes b/Changes new file mode 100644 index 0000000..2958033 --- /dev/null +++ b/Changes @@ -0,0 +1,5 @@ +$Id: Changes,v 1.1 2004/08/18 17:53:45 xmath Exp $ + +0.02 -- Wed Aug 18 19:51:36 CEST 2004 + * Fixed documentation, which erroneously mentioned the existance of + two exported functions. diff --git a/MANIFEST b/MANIFEST index 75b2378..ca37061 100644 --- a/MANIFEST +++ b/MANIFEST @@ -1,3 +1,4 @@ +Changes MANIFEST META.yml Makefile.PL diff --git a/META.yml b/META.yml index c961a7d..bd37368 100644 --- a/META.yml +++ b/META.yml @@ -1,7 +1,7 @@ # http://module-build.sourceforge.net/META-spec.html #XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX# name: Sub-Name -version: 0.01 +version: 0.02 version_from: lib/Sub/Name.pm installdirs: site requires: diff --git a/README b/README index 3bf1a28..422e7bc 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ -$Id: README,v 1.4 2004/08/18 12:03:42 xmath Exp $ +$Id: README,v 1.5 2004/08/18 17:53:45 xmath Exp $ Sub::Name 0.01 @@ -23,9 +23,7 @@ SYNOPSIS $subref = subname foo => sub { ... }; DESCRIPTION - This module has two functions to assign a new name to a sub -- in - particular an anonymous sub -- which is displayed in tracebacks and - such. Both functions are exported by default. + 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 @@ -36,9 +34,9 @@ DESCRIPTION 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 closures (anonymous subs that reference lexicals outside - the sub itself) you can name each instance of the closure differently, - which can be very useful for debugging. + 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. AUTHOR Matthijs van Duin diff --git a/lib/Sub/Name.pm b/lib/Sub/Name.pm index c881b39..f5881be 100644 --- a/lib/Sub/Name.pm +++ b/lib/Sub/Name.pm @@ -1,4 +1,4 @@ -# $Id: Name.pm,v 1.4 2004/08/18 12:03:42 xmath Exp $ +# $Id: Name.pm,v 1.5 2004/08/18 17:53:45 xmath Exp $ package Sub::Name; @@ -16,9 +16,7 @@ Sub::Name - (re)name a sub =head1 DESCRIPTION -This module has two functions to assign a new name to a sub -- in particular an -anonymous sub -- which is displayed in tracebacks and such. Both functions are -exported by default. +This module has only one function, which is also exported by default: =head2 subname NAME, CODEREF @@ -29,9 +27,9 @@ 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 closures (anonymous subs that reference lexicals outside the sub -itself) you can name each instance of the closure differently, which can be -very useful for debugging. +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. =head1 AUTHOR @@ -48,7 +46,7 @@ use 5.006; use strict; use warnings; -our $VERSION = '0.01'; +our $VERSION = '0.02'; use base 'Exporter'; use base 'DynaLoader';