htpl
view release on metacpan or search on metacpan
HTPL-modules/lib/HTML/HTPL/Munge.pm view on Meta::CPAN
package HTML::HTPL::Munge;
use Filter::Util::Call;
use Tie::Parent;
require Exporter;
use strict;
use vars qw(%variables);
use Carp;
sub import {
my $pkg = (caller)[0];
my $class = shift;
$variables{$pkg} = [ @_ ];
filter_add(bless {'pkg' => $pkg});
Exporter::export('HTML::HTPL::Munge::Stub', $pkg, 'AUTOLOAD');
Exporter::export('HTML::HTPL::Munge::Stub2', "${pkg}::__shadow__", 'AUTOLOAD');
undef;
}
sub filter {
HTPL-modules/lib/HTML/HTPL/Sys.pm view on Meta::CPAN
@result;
}
sub pkglist {
my ($pkg, $char, $full) = @_;
$char =~ s/^(.)$/^\\$1/;
grep /$char/, &pkganalyze($pkg, $full);
}
sub getpkg {
my $caller = (caller)[0];
my $loop;
do {
$loop++;
my $this = (caller($loop))[0];
return $this if ($this ne $caller);
}
}
sub mytime {
$have_time_hires ? Time::HiRes::gettimeofday() : time;
( run in 1.973 second using v1.01-cache-2.11-cpan-a3c8064c92c )