Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by ysth (Canon)
on Nov 18, 2013 at 06:42 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1063049]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-03-19 07:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found