- or download this
use Devel::Examine::Subs;
...
file => $dir,
regex => 1,
});
- or download this
$des->search_replace({
exclude => ['one', 'three'],
...
replace => 'new_template.tpl',
extensions => ['pm'],
});
- or download this
my @code = <DATA>;
...
print Dumper $self;
exit;
}
- or download this
my $des = Devel::Examine::Subs->new({
file => 'file.pm',
cache => 1,
});
- or download this
my $objects_aref = $des->objects();
- or download this
for my $sub (@$objects_aref){
...
print "\n";
}
}
- or download this
# dir search returns an href. key is the filename of
# the file the subs were found in, and the values are the
...
...
}
}
- or download this
my $aref = $des->all();
- or download this
my $aref = $des->has({search => 'this'});
my $aref = $des->missing({search => 'this'});
- or download this
my $files = $des->all({file => 'dir'});
...
}
print "\n";
}