in reply to Re^3: Refresh a Module
in thread Refresh a Module
In the OPs example there is also a delete $My::{Run}. SoLoading... a: Running Loading... b: Running
says My::Run() is undefined in the second call. What does delete $My::{Run} do?require My; print "a: "; My::Run(); # a: Running undef &My::Run; delete $INC{"My.pm"}; delete $My::{Run}; require My; print "b: "; My::Run(); # Undefined subroutine &My::Run called at ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Refresh a Module
by LanX (Saint) on Sep 26, 2024 at 13:54 UTC |