in reply to html->perl->c->perl...... work dang it

Always use strict! I always wanted to say that :) And for CGI's use Taint too...
#!/usr/local/bin/perl -wT use strict; ...

Replies are listed 'Best First'.
Re: Re: html->perl->c->perl...... work dang it
by jcpunk (Friar) on May 15, 2003 at 16:44 UTC
    thanks, have no idea what it does but i have implemented it per your instructions
Re: Re: html->perl->c->perl...... work dang it
by jcpunk (Friar) on May 15, 2003 at 17:03 UTC
    what do those things do, as now having implemented them, my program gives out about 15 lines of error messages and then refuses to run.... it gives things like
    Global symbol "$username" requires explicit package name at ./vacation +.pl line 60.
      strict will save your sanity in the long run. It will help you with things like redeclaring variables and such ...
      And for -T look here
      I know these things will seem like a pain at first but hopefully you'll thank me in the end? :)

      When strict rules are in effect, any global symbol must be accounted for. This helps find many typo problems, as well as accidental variable sharing.

      In almost all cases, before the first use of any given variable, declare the variable with a my $foo; or my @blah;.

      --
      [ e d @ h a l l e y . c c ]