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

(jjhorner)PineTOC

by jjhorner (Hermit)
on Aug 01, 2000 at 04:35 UTC ( [id://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
jhorner@knoxlug.org http://www.knoxlug.org/

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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-25 15:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found