Marcel Grünauer == hanekomu (跳ね込む) > Attribute-SubName-0.03 > Attribute::SubName

Download:
Attribute-SubName-0.03.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.03   Source  

NAME ^

Attribute::SubName - Naming anonymous subroutines via attributes

SYNOPSIS ^

    use Attribute::SubName;

    my $coderef = sub :Name(foo) { ... };

    print foo(...);

DESCRIPTION ^

This module provides an attribute :Name that you can use on anonymous subroutines to give them a name. This is useful as they will then show up with that name in stack traces (cf. Carp). The naming is done with Sub::Name. Additionally, the attribute also installs the newly named subroutine in the proper glob slot so you can refer to it by name.

TAGS ^

If you talk about this module in blogs, on del.icio.us or anywhere else, please use the attributesubname tag.

VERSION ^

This document describes version 0.03 of Attribute::SubName.

BUGS AND LIMITATIONS ^

No bugs have been reported.

Please report any bugs or feature requests to <bug-attribute-subname@rt.cpan.org>, or through the web interface at http://rt.cpan.org.

INSTALLATION ^

See perlmodinstall for information and options on installing Perl modules.

AVAILABILITY ^

The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN site near you. Or see <http://www.perl.com/CPAN/authors/id/M/MA/MARCEL/>.

AUTHOR ^

Marcel Grünauer, <marcel@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright 2007-2008 by Marcel Grünauer

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.