Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical


by jjhorner (Hermit)
on Aug 01, 2000 at 04:35 UTC ( #25373=note: print w/replies, xml ) Need Help??

in reply to PineTOC

Pretty good code, from just a quick peek, but even though you are declaring your variables, you aren't checking up on yourself with the warnings and strict pragmas.

Please use them. Even experienced Perl programmers use them.

"-w" (or "use warnings") and "use strict" are your friends.

cut-n-paste the following code and run it as your punishment.

#!/usr/bin/perl -w use strict; my $i; for($i = 0; $i < 100; $i++) { print "I will use strict and warnings.\n"; };
J. J. Horner
Linux, Perl, Apache, Stronghold, Unix

Replies are listed 'Best First'.
RE: (jjhorner)PineTOC
by Tally (Novice) on Aug 01, 2000 at 18:04 UTC
    Thanks for your input!
    I updated my code, and ran my penance program like a good monk. =)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2023-06-06 09:44 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (26 votes). Check out past polls.