Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: How can I suppress 'uninitialized' warnings in a CPAN module?

by ysth (Canon)
on Nov 18, 2013 at 06:42 UTC ( #1063049=note: print w/replies, xml ) Need Help??


in reply to How can I suppress 'uninitialized' warnings in a CPAN module?

The first question is: why is it generating warnings in the first place? If you are using -w or -W, stop; instead lexically enable warnings with use warnings; only for your own code.
--
A math joke: r = | |csc(θ)|+|sec(θ)| |-| |csc(θ)|-|sec(θ)| |

Replies are listed 'Best First'.
Re^2: How can I suppress 'uninitialized' warnings in a CPAN module?
by zork42 (Monk) on Nov 20, 2013 at 16:43 UTC
    Thanks, but maybe you missed the thread title. My code is warning free, but I'm getting warnings from a CPAN module.
      And I asked "why?" Uninitialized warnings don't just happen; either you are enabling them even on code other than your own, or the CPAN module is enabling warnings but not coded to avoid generating them (a bug), or you are using the CPAN module in an unsupported way.
      --
      A math joke: r = | |csc(θ)|+|sec(θ)| |-| |csc(θ)|-|sec(θ)| |

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2019-11-19 12:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (95 votes). Check out past polls.

    Notices?