Thread Data Sharing / Zaehlen der Abrufe: IPC::Shareable unter mod_perl handler?!?
(11 answers)
Opened by Airport1 at 2005-07-22 19:28
es ist ja nicht so, als ob perl eine faq hätte. =)
Code: (dl
)
1 I still don't get locking. I just want to increment the probier's erst mal aus. wenn dir das zuviel wird, dann erstell dir eine globale variable, also pro apache- prozess, und zähl da hoch. bei 100 schreibst du in die counterdatei (+100) und setzt den counter im apache wieder zurück. bei bedarf kannst du die 100 beliebig anpassen.\n\n <!--EDIT|pq|1122218998--> Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: ![]() ![]() |