in reply to Reloading a file, required by a Term::Readline based shell
Well, I've created a small sub:
sub reload { delete $INC{'spamassassin.pm'}; require 'spamassassin.pm'; }
and it seems to work fine. I got the subs redifined...
prep test shell >reload Subroutine spamassassin_report redefined at spamassassin.pm line 14. Subroutine spamassassin_graph redefined at spamassassin.pm line 56.
If I use do, I get a warning...
prep test shell >reload Use of uninitialized value in do "file" at ./shell.pl line 46. Null filename used at ./shell.pl line 46.
|
|---|