Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

RE: Ahh, one further question...

by AgentM (Curate)
on Oct 24, 2000 at 22:07 UTC ( [id://38155]=note: print w/replies, xml ) Need Help??


in reply to Ahh, one further question...
in thread Overuse of double quotes?

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
(tye)RE: Ahh, one further question...
by tye (Sage) on Oct 24, 2000 at 22:18 UTC

    eval does not load another interpreter nor does it create another process.

    eval is slower than most alternatives so you try to avoid doing eval inside of a loop or an oft-used subroutine. But eval isn't so slow that you should be too afraid to use it. But there are also plenty of reasons other than performance to not use eval most of the time.

    Back to the question, the speed of " vs. ' inside an eval would be nearly impossible to detect, much less being something to worry about. After all, ' still has to check for \\ and \'.

            - tye (but my friends call me "Tye")

Log In?
Username:
Password:

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

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

    No recent polls found