Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Getting Value from joining 2 variables

by CountZero (Bishop)
on Jan 02, 2011 at 13:07 UTC ( #880066=note: print w/replies, xml ) Need Help??


in reply to Getting Value from joining 2 variables

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2023-01-28 09:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?