Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

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).



Replies are listed 'Best First'.
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.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://187444]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2018-06-25 20:23 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (128 votes). Check out past polls.