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

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.

Replies are listed 'Best First'.
Re: Re: Re: html->perl->c->perl...... work dang it
by LameNerd (Hermit) on May 15, 2003 at 17:12 UTC
    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? :)
Re: Re: Re: html->perl->c->perl...... work dang it
by halley (Prior) on May 15, 2003 at 17:12 UTC

    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 ]