Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
No such thing as a small change
 
PerlMonks  

(jjhorner)PineTOC

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 14: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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.