Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: looking for a good idiom: return this if this is true

by dws (Chancellor)
on Mar 06, 2005 at 00:47 UTC ( #436974=note: print w/replies, xml ) Need Help??


in reply to Re^2: looking for a good idiom: return this if this is true
in thread looking for a good idiom: return this if this is true

Huh? Are you confusing ...

No confusion here. The bookkeeping overhead (pushing a marker onto the return stack, though I recall eval doing a bit more than that) is on par with creating a temporary variable. In my mind, at least, that cancels any performance objections about using a temporary variable.

eval'ing a string would be nuts, and I give you credit for not being that nuts.

  • Comment on Re^3: looking for a good idiom: return this if this is true

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2020-10-24 09:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (242 votes). Check out past polls.

    Notices?