Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by sara2005 (Scribe)
on Dec 12, 2005 at 19:01 UTC ( [id://516182]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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

Windows 98SE.

Do you think it could be the reason why it is not supported?

  • Comment on Re^2: Error in CGI::Session on Windows: flock() not implemented

Replies are listed 'Best First'.
Re^3: Error in CGI::Session on Windows: flock() not implemented
by antirice (Priest) on Dec 12, 2005 at 19:06 UTC

    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.

      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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://516182]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.