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

Re^3: Can i make this more efficient with a special variable?

by blazar (Canon)
on Jan 11, 2006 at 09:28 UTC ( [id://522398]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Can i make this more efficient with a special variable?
in thread Can i make this more efficient with a special variable?

ok. i thought the value from the last if expression would be some sort of special variable in the local block. nice to know there's not.

Well, not that nice, but I've never really felt the lack of such a beast. OTOH you can do an aliasing in a syntactically sweet enough way as hinted at the very end of my other reply.

typically more people here yell at me (and others) for writing " return $var " than " $var "

Right! it's a very common and unambiguous perlism. I'm all with you, as you can see in my comment to his reply.

  • Comment on Re^3: Can i make this more efficient with a special variable?

Log In?
Username:
Password:

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

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

    No recent polls found