Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re^3: Stumped by a warning (carp)

by tye (Sage)
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        

Replies are listed 'Best First'.
Re^4: Stumped by a warning (carp)
by Wiggins (Hermit) on Nov 16, 2012 at 17:52 UTC
    I restored the 'use warnings;' and 'require /sys/;' 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/ is where the warning is coming from.

      - tye        

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1004049]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2018-06-20 19:22 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (117 votes). Check out past polls.