App-Pod
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/App/Pod.pm view on Meta::CPAN
- # pod version 0
-
- package UNIVERSAL;
-
- sub dir{
- my ($s) = @_; # class or object
- my $ref = ref $s;
- my $class = $ref ? $ref : $s; # myClass
- my $pkg = $class . "::"; # MyClass::
- my @keys_raw;
- my $is_special_block = qr/^ (?:BEGIN|UNITCHECK|INIT|CHECK|END|import|DESTROY) $/x;
-
- no strict 'refs';
-
- while( my($key,$stash) = each %$pkg){
- # next if $key =~ /$is_special_block/; # Not a special block
- # next if $key =~ /^ _ /x; # Not private method
- next if ref $stash; # Stash name should not be a reference
- next if not defined *$stash{CODE}; # Stash function should be defined
- push @keys_raw, $key;
- }
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.478 second using v1.00-cache-2.02-grep-82fe00e-cpan-c30982ac1bc3 )