Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Nested evals - are they evil?

by ysth (Canon)
on Jul 31, 2007 at 00:55 UTC ( [id://629717]=note: print w/replies, xml ) Need Help??


in reply to Nested evals - are they evil?

Leave well enough alone?

If you really want to fix things, investigate the all possible causes of exceptions and decide ahead of time how you want to handle them. Then stop and consider if that really provides any benefit over how things are now.

Replies are listed 'Best First'.
Re^2: Nested evals - are they evil?
by cLive ;-) (Prior) on Jul 31, 2007 at 01:36 UTC

    I'm leaving them for now, but since this is a daemon, I think (though have yet to benchmark) that removing the evals will speed things up a little. Or a lot. If a lot, removing them suddenly becomes essential.

    I was just wondering right now if philosophically it was better to work towards removing them.

    Hmmmm.

      You think that block evals are a performance penalty? I've never heard that. Have you tested that theory at all?

        No, hence the words, "I think" and "have yet to benchmark" ;-)

        I guess my hunch was wrong on that count. I think it's just that I'm not 100% sure exactly how eval is dealt with that is troubling my psyche. Time for more background reading...

Log In?
Username:
Password:

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

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

    No recent polls found