Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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


Comment on Re: Bachelor of Arts?
Download Code

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 scrutinizing the Monastery: (11)
As of 2014-08-28 00:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (253 votes), past polls