Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
go ahead... be a heretic
 
PerlMonks  

Re: Problem with CGI script.

by december (Pilgrim)
on Aug 04, 2002 at 03:36 UTC ( #187444=note: print w/ replies, xml ) Need Help??


in reply to Problem with CGI script.

flock is a traditional unix/posix function which perl simply implements, I don't think there has been a similar function implemented in perl for windows.

About the 'uninitialized' warnings, well... You didn't initialize those keys, that's all it's saying. I don't think it's a problem here, I get those often when not all cgi-parameters are given.

Btw, you might want to upgrade your apache, since everything before 1.3.26 contains a nasty buffer overflow in the way chuncked encoding is handled (I don't think it's actively exploitable in windows, at least not more than an annoying DoS attack).


Regards,

   wouter


Comment on Re: Problem with CGI script.
Re: Re: Problem with CGI script.
by ajt (Prior) on Aug 04, 2002 at 11:10 UTC

    flock works "fine" on Windows NT based Win32 operating systems, so it should be fine on NT4, 2K and XP. flock does not work on the 9x based Win32 operating systems, so this can't work on 95, 98 or Me. You don't say which flavour of Win32 you have, but I assume it's a 9x rather than an NT version.

    The warnings are there to suggest that you are using something that you never initialised. Perl is just making a suggestion that as they contain nothing yet, this may not be what you want.

    As you haven't loaded CGI::Carp your warnings are going to STDOUT, which is probaly what is upsetting the server. Try changing use CGI qw( fatalsToBrowser ); to use CGI::Carp qw( fatalsToBrowser );

    While not critical if you serer isn't exposed on the Internet, it's probably best as december says to upgrade Apache when you get a chance.

    UPDATE: Long paragraph broken in two to clarify statment.


    --
    ajt

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2014-04-20 03:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls