Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^4: determine the variable causing the error: Use of uninitialized value

by kcott (Archbishop)
on Apr 14, 2017 at 05:22 UTC ( [id://1187914]=note: print w/replies, xml ) Need Help??


in reply to Re^3: determine the variable causing the error: Use of uninitialized value
in thread determine the variable causing the error: Use of uninitialized value

You could use

{ local $SIG{__WARN__} = sub { ... }; eval { ... }; }

to trap the warning and do something special with it. However, I can't see that helping with identifying uninitialised values.

There's example code in perlvar: %SIG.

— Ken

  • Comment on Re^4: determine the variable causing the error: Use of uninitialized value
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-24 03:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found