Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: Stumped by a warning (carp)

by tye (Cardinal)
on Nov 15, 2012 at 17:47 UTC ( #1004049=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Stumped by a warning (carp)
in thread Stumped by a warning

The google results say that it is likely a flaw in something generated by h2xs.

The reason you didn't get details about where the warning came from is because you overrode the __WARN__ handler, probably by doing "use diagnostics;". So comment out that line and you'll likely be told not only what *.ph file is generating the warning but also what module pulled that file in (and what module pulled that module in, etc.).

(This is yet another example of why it might be a very good idea for eval to suppress warnings, especially "mandatory warnings".)

- tye        


Comment on Re^3: Stumped by a warning (carp)
Re^4: Stumped by a warning (carp)
by Wiggins (Friar) on Nov 16, 2012 at 17:52 UTC
    I restored the 'use warnings;' and 'require /sys/ioctl.ph;' and then comment out the 'use diagnostics;'.
    The warning did not display .
    Maybe there can be too much introspection.

    It is always better to have seen your target for yourself, rather than depend upon someone else's description.

      'use warnings' won't enable warnings in other lexical scopes (use -w instead if you want). But it sounds like you already know that sys/ioctl.ph is where the warning is coming from.

      - tye        

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2014-10-02 05:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (49 votes), past polls