Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: is $i=+3 valid?

by dsheroh (Monsignor)
on Jul 05, 2013 at 07:28 UTC ( [id://1042631]=note: print w/replies, xml ) Need Help??


in reply to is $i=+3 valid?

Yes, $i=+3 is valid, but it doesn't do what you intend. It sets the value of $i to positive three (+3).

As earlier answers suggested, you would use $i += 3 to add 3 to the value of $i.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-19 11:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found