Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^4: Log4perl swallowing $@

by Anonymous Monk
on Oct 29, 2010 at 06:49 UTC ( [id://868243]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Log4perl swallowing $@
in thread Log4perl swallowing $@

There is no bug, the expectations are wrong

The variable $@ is never touched in Log4perl

However log4perl does use eval

Its just like $!, its only valid immediately after a system call, if you want to use it at few lines later, you have to cache it.

Replies are listed 'Best First'.
Re^5: Log4perl swallowing $@
by andal (Hermit) on Oct 29, 2010 at 09:23 UTC
    Agree with this one. Nobody shall assume that $@ or $! or $? would keep their values for ever. It would be tedious job trying to properly localize all of the variables that your code may indirectly affect.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://868243]
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 2026-04-15 09:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.