Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

RE: RE (4): Simple Locking

by merlyn (Sage)
on Aug 22, 2000 at 16:22 UTC ( [id://28998]=note: print w/replies, xml ) Need Help??


in reply to RE (4): Simple Locking
in thread Simple Locking

You say mod_perl here, but what you really mean is Apache::Registry, just one of the many mod_perl modules, and you're relying on the trick that your code is getting wrapped into a giant subroutine, which may not necessarily be true in future implementations of Apache::Registry.

Your trick doesn't work for mod_perl handlers in general, hence my warning on the original code.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
RE (tilly) 6: Simple Locking
by tilly (Archbishop) on Aug 22, 2000 at 16:50 UTC
    Didn't know that. (I have mentioned I don't do much web stuff? Bad excuse, I know...)

    In general though, couldn't the above approach at least simplify the necessary logic somewhat? Particularly with functions with one entry and multiple exit points...?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-18 05:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found