in reply to Re: Strict, my and warnings
in thread Many strings make one variable?

Funny(Horrid) thing to share regarding the lack of -w and strict...
I've been running a dozen linked perl scripts for
several websites for 2 years now.
Very sloppy, but working code with
global dynamic variables, lack of 'my',
and a few 'locals' where they should not be.
I turned -w on...
my apache error log generated 14,267 warnings.
This is the total number of warnings issued for
1 single request to one cgi.

The main cgi only had 5041 lines of code,
93 subroutines,
and 2 to 3 requires.

jtrue

P.S. running strict was an impossibility.
Apache said "unsafe" at line four and sacked the cgi.
Guess what i'll be doing for the next couple of days.

(See i don't mind showing my butt cheeks).
In two weeks i'll be stronger.

thanks for your help demerphq

Replies are listed 'Best First'.
Re: Re: Re: Strict, my and warnings
by demerphq (Chancellor) on Oct 16, 2002 at 14:17 UTC
    running strict was an impossibility. Apache said "unsafe" at line four and sacked the cgi.

    Im sure that if you post the circumstances for this that one of the Apache aware monks will help you get scripts working under strict

    In two weeks i'll be stronger.

    It looks like you are well along on the path to enlightenment. It may be a touch painful (14267! yikes!) but by the end of it you'll probably say it was worth it. And hanging out here and listening to the monks and participating will ease the pain a lot im sure. Incidentally dont be afraid to post answers and your ideas, you might get shot down a few times but if you take it well then nobody will mind helping out a bit....

    :-)

    --- demerphq
    my friends call me, usually because I'm late....