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

Re^3: Error in CGI::Session on Windows: flock() not implemented

by antirice (Priest)
on Dec 13, 2005 at 00:06 UTC ( #516184=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Error in CGI::Session on Windows: flock() not implemented
in thread Error in CGI::Session on Windows: flock() not implemented

According to perlport, seems to be. I don't think windows supports flock until you get into the NT's (2000, XP, etc).

For the time being, you could add the following code to your script to override flock. (NOTE: Only do this for when you run on Windows 98 as the locks are very important with a filesystem that allows concurrent access to files).

BEGIN { *CORE::GLOBAL::flock = sub { return 1; } }

Note: Updated code.


Comment on Re^3: Error in CGI::Session on Windows: flock() not implemented
Download Code
Re^4: Error in CGI::Session on Windows: flock() not implemented
by sara2005 (Scribe) on Dec 13, 2005 at 00:23 UTC
    Thanks a lot for your help on this.

    By commenting the flock() function, I was able to get this working.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (11)
As of 2014-07-29 15:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (220 votes), past polls