Hm, it would appear that you'll get these warnings in any module that does a use warings;, which /should/ be most modules. The fact that your module is apparently the only one that you tried that does that is rather sad, actualy.
But removing the "use warnings" from reload.pm is clearly not a general solution, if this is indeed the problem. What happened, BTW, to my proposed (in the CB) solution of stealing Text::Template's _scrubpkg sub?
Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).
| [reply] [d/l] |
Not sad - forgetful!
I usually have strict/warnings in all scripts/modules, by default - Lord only knows how I managed to forget in the handful of modules that I've been using with this reloadable method.
As for Text::Template's _scrubpkg, this much like !1's idea, looks like real voodoo to me - but thats simply because I don't "get it". Thats not to say I won't try it - I just haven't yet :)
Thanks all;
JP,
-- Alexander Widdlemouse undid his bellybutton and his bum dropped off --
| [reply] |