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

Re^2: mod_cgid, CGI::Fast share values between different scripts?

by Anonymous Monk
on Oct 09, 2012 at 07:29 UTC ( #997942=note: print w/ replies, xml ) Need Help??


in reply to Re: mod_cgid, CGI::Fast share values between different scripts?
in thread mod_cgid, CGI::Fast share values between different scripts?

thanks for the quick response. it's a pitty. such things worked a bit better with mod_perl.
here is how it works:

#!/usr/bin/perl use CGI::Fast; use IPC::ShareLite; my $share = IPC::ShareLite->new( -key => 0xBADC0DE, -create => 'yes', -destroy => 'no', ); while ( CGI::Fast->new() ) { print "Content-type: text/html\n\n"; my $x = $share->fetch; $x++; $share->store($x); print $x; }


Comment on Re^2: mod_cgid, CGI::Fast share values between different scripts?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2014-10-01 13:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (21 votes), past polls