Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: html->perl->c->perl...... work dang it

by LameNerd (Hermit)
on May 15, 2003 at 16:31 UTC ( [id://258436]=note: print w/replies, xml ) Need Help??


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 ]

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://258436]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-03-29 11:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found