Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Prefix and postfix increment/decrement operator query

by saurabh.hirani (Beadle)
on Jul 02, 2009 at 14:16 UTC ( [id://776754]=note: print w/replies, xml ) Need Help??


in reply to Re: Prefix and postfix increment/decrement operator query
in thread Prefix and postfix increment/decrement operator query

@JavaFan - I meant -

perl -le '$a = 10; print $a++ + $a--'

Sorry for missing out on the print statement.

Thanks davorg, wfsp for pointing to perlop and the Autoincrement magic link. I guess as it is undefined behavior I will leave it at that.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-16 14:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found