- or download this
sub reload {
my ($PM) = @_ or return;
$PM =~ s!::!/!g;
$PM .= ".pm";
delete $INC{$PM};
- or download this
no strict 'refs';
no warnings 'redefine';
- or download this
my $warnings = \&warnings::import;
local *warnings::import = sub {
&{$warnings};
unimport warnings "redefine";
};
- or download this
eval { require $PM };
}