in reply to Re: reloading of module
in thread reloading of module

Ok, I'm loading it up as a module now and I've done both, deleting the $INC and reloading it and using module::refresh. However, I keep getting it giving me:

"Subroutine on_public redefined at XXXX"

This is the same error as before. Do I need to scrap or reload the subroutines as well? If so, how?

Replies are listed 'Best First'.
Re^3: reloading of module
by borisz (Canon) on Dec 31, 2004 at 15:19 UTC
    Try this, but do _not_ delete $INC{xx} if you use this module.
    # somewhere at the top my $refresher = Module::Refresher->new; .... { no warnings 'redefine'; $refresher->refresh_module('module_name'); }
    Boris