Acme-SubstituteSubs
view release on metacpan or search on metacpan
lib/Acme/SubstituteSubs.pm view on Meta::CPAN
}
if(! $foundit ) {
# at the end of the file and still haven't found the package/sub? just append it.
if($currentpackage ne $packagename) {
$fh->print(qq{\npackage $packagename;\n});
}
$fh->print($code);
}
$fh->close;
rename $RealScript, $RealScript.'.last';
rename $RealScript.'.new', $RealScript or do {
warn "renaming new pl file into place as ``$RealScript'' failed: $!";
};
}
sub list_both {
shift if Devel::Caller::called_as_method;
my @packages;
my @subs;
( run in 0.418 second using v1.01-cache-2.11-cpan-e9daa2b36ef )