Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: is $i=+3 valid?

by sahil2588 (Novice)
on Jul 05, 2013 at 07:42 UTC ( [id://1042640]=note: print w/replies, xml ) Need Help??


in reply to is $i=+3 valid?

I think you are trying to increment the value of $i here. For that you should use: $i+=3 This will add 3 to your current $i value. $i=+3 is just like assigning "+3" i.e. positive 3 value to $i.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-25 18:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found