0.84 Wed Jun 10 15:14:00 CET 2009
- Core-CPAN synchronization
+
+0.85 Thu Jun 11 09:31:00 CET 2009
+ - Document findsym for the sake of mod_perl. (David Wheeler)
+ - Remove unused variable. (David Wheeler)
use warnings;
use strict;
use vars qw($VERSION $AUTOLOAD);
-$VERSION = '0.84'; # remember to update version in POD!
+$VERSION = '0.85'; # remember to update version in POD!
# $DB::single=1;
my %symcache;
my ($pkg, $ref, $type) = @_;
return $symcache{$pkg,$ref} if $symcache{$pkg,$ref};
$type ||= ref($ref);
- my $found;
no strict 'refs';
foreach my $sym ( values %{$pkg."::"} ) {
use strict;
=head1 VERSION
-This document describes version 0.84 of Attribute::Handlers,
-released June 10, 2009.
+This document describes version 0.85 of Attribute::Handlers,
+released June 11, 2009.
=head1 SYNOPSIS
# etc.
+=head1 UTILITY FUNCTIONS
+
+This module offers a single utility function, C<findsym()>.
+
+=over 4
+
+=item findsym
+
+ my $symbol = Attribute::Handlers::findsym($package, $referent);
+
+The function looks in the symbol table of C<$package> for the typeglob for
+C<$referent>, which is a reference to a variable or subroutine (SCALAR, ARRAY,
+HASH, or CODE). If it finds the typeglob, it returns it. Otherwise, it returns
+undef. Note that C<findsym> memoizes the typeglobs it has previously
+successfully found, so subsequent calls with the same arguments should be
+must faster.
+
+=back
=head1 DIAGNOSTICS