Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

RE: RE (4): Simple Locking

by merlyn (Sage)
on Aug 22, 2000 at 16:22 UTC ( #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? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2021-10-21 14:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (83 votes). Check out past polls.

    Notices?