rendler has asked for the wisdom of the Perl Monks concerning the following question:
From the main script itself but that didn't seem to do much good (I'm calling the sub from another module btw). Then I tried adding the sub to all of my custom modules that the whole script is using and called them all from that first module. Again that didn't work, I've also tried leaving out require $_;.sub reload_modules { for (keys %INC) { if (/^QStat/) { delete $INC{$_}; require $_; } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Reloading Modules
by rob_au (Abbot) on Feb 03, 2002 at 06:11 UTC | |
by rendler (Pilgrim) on Feb 03, 2002 at 06:18 UTC | |
by Anonymous Monk on Feb 03, 2002 at 19:16 UTC | |
Re: Reloading Modules
by chromatic (Archbishop) on Feb 03, 2002 at 06:04 UTC | |
by rendler (Pilgrim) on Feb 03, 2002 at 06:10 UTC | |
by chromatic (Archbishop) on Feb 03, 2002 at 18:23 UTC | |
Re: Reloading Modules
by IlyaM (Parson) on Feb 03, 2002 at 08:30 UTC | |
Re: Reloading Modules
by maverick (Curate) on Feb 03, 2002 at 18:32 UTC |