![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
comment on |
( #3333=superdoc: print w/replies, xml ) | Need Help?? |
You set the variable $plus2 to one, but then you never use it and use $plus.
This type of error is one of the main reasons why you always should use strict; and use warnings; or useModern::Perl; (if you are using Perl 5.10 or later). CountZero A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James In reply to Re: Getting Value from joining 2 variables
by CountZero
|
|