in reply to Refreshing a perl script

This code looks like you have been learning out of an old (and bad) CGI book.

I know people come to sound like a broken record on this, but you would need a lot less code, and would have less room for error if you used strict.pm, CGI, and a basic templating package (there are many out there, one of the simpler ones is Text::Template. (Also see Dominus's description at his home site.)

Oh, I also note that in recent Perls there is no need to call srand any more.

Replies are listed 'Best First'.
Re: Re (tilly) 1: Refreshing a perl script
by io (Scribe) on Feb 23, 2002 at 15:45 UTC
    yes, looks like cgi101 to me. oh well, it was my first introduction to cgi (and perl) too.