Help for this page

Select Code to Download


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