Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: is $i=+3 valid?

by dsheroh (Prior)
on Jul 05, 2013 at 07:28 UTC ( #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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1042631]
[marioroy]: Morning Discipulus. porting C code to Perl is an interesting problem for running parallel. I will try and the reason for attempting Perl code to match C 100%.
marto waves
[Discipulus]: hello marioroy! yes i need to start to write parallel, but not with this Pi code; it is yet melting my brain on it's own!

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2017-10-24 07:10 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (286 votes). Check out past polls.