Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Bachelor of Arts?

by erikharrison (Deacon)
on Aug 26, 2002 at 02:21 UTC( #192747=note: print w/replies, xml ) Need Help??


in reply to Bachelor of Arts?

So, the ++ operator has highest precedence. According to perlop it returns the value first then autoincrements it. Then $a is evlauated, then print. Step by step it looks like this:

print $a, $a++; print $a, 'A'; #++returns $a prior to incrementing print 'B', 'A'; #$a is evaluated to it's after increment value of 'B'
Cheers,
Erik

Light a man a fire, he's warm for a day. Catch a man on fire, and he's warm for the rest of his life. - Terry Pratchet

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2016-08-30 04:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (410 votes). Check out past polls.