Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: Reloading modules- suppressing warnings works sometimes?

by theorbtwo (Prior)
on Dec 21, 2003 at 20:41 UTC ( [id://316239]=note: print w/replies, xml ) Need Help??


in reply to Re: Reloading modules- suppressing warnings works sometimes?
in thread Reloading modules- suppressing warnings works sometimes?

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).

Replies are listed 'Best First'.
Re: Re: Re: Reloading modules- suppressing warnings works sometimes?
by JPaul (Hermit) on Dec 22, 2003 at 00:03 UTC
    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 --

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://316239]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (1)
As of 2024-04-25 00:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found