Changeset 11294 for lang/perl/Acme-CPANAuthors
- Timestamp:
- 05/09/08 15:55:50 (7 months ago)
- Location:
- lang/perl/Acme-CPANAuthors/trunk
- Files:
-
- 1 added
- 4 modified
-
Changes (modified) (1 diff)
-
MANIFEST (modified) (1 diff)
-
lib/Acme/CPANAuthors.pm (modified) (2 diffs)
-
lib/Acme/CPANAuthors/Register.pm (modified) (2 diffs)
-
t/02_standalone.t (added)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Acme-CPANAuthors/trunk/Changes
r3606 r11294 1 1 Revision history for Acme-CPANAuthors 2 3 0.02 2008/05/** 4 - made Acme::CPANAuthors::(Specific)->authors context sensitive. 2 5 3 6 0.01 2007/12/26 -
lang/perl/Acme-CPANAuthors/trunk/MANIFEST
r3606 r11294 9 9 t/00_load.t 10 10 t/01_basic.t 11 t/02_standalone.t 11 12 t/99_pod.t 12 13 t/99_podcoverage.t -
lang/perl/Acme-CPANAuthors/trunk/lib/Acme/CPANAuthors.pm
r3606 r11294 6 6 use Acme::CPANAuthors::Utils qw( cpan_authors cpan_packages ); 7 7 8 our $VERSION = '0.0 1';8 our $VERSION = '0.02'; 9 9 10 10 sub new { … … 131 131 $kwalitee = $authors->kwalitee('ISHIGAKI'); 132 132 133 If you don't like this interface, just use specific authors list. 134 135 use Acme::CPANAuthors::Japanese; 136 137 my %authors = Acme::CPANAuthors::Japanese->authors; 138 139 # note that ->author is context sensitive. 140 # however, you can't write this without dereference 141 # as "keys" checks the type (actually, the number) of args. 142 for my $name (keys %{ Acme::CPANAuthors::Japanese->authors }) { 143 print Acme::CPANAuthors::Japanese->authors->{$name}, "\n"; 144 } 145 133 146 =head1 DESCRIPTION 134 147 -
lang/perl/Acme-CPANAuthors/trunk/lib/Acme/CPANAuthors/Register.pm
r3606 r11294 10 10 { 11 11 no strict 'refs'; 12 *{"$caller\::authors"} = sub { %authors };12 *{"$caller\::authors"} = sub { wantarray ? %authors : \%authors }; 13 13 } 14 14 } … … 34 34 1; 35 35 36 # then you can get authors list like these. 37 # note that ->authors is context sensitive) 38 39 my %hash = Acme::CPANAuthors::YourGroup->authors; 40 my $hashref = Acme::CPANAuthors::YourGroup->authors; 41 36 42 =head1 DESCRIPTION 37 43 38 44 This is used to register Pause IDs and real names of those who belong to your country/local perl mongers group/your company etc. 45 46 =head1 SEE ALSO 47 48 L<Acme::CPANAuthors> 39 49 40 50 =head1 AUTHOR
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)