Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Bachelor of Arts?

by erikharrison (Deacon)
on Aug 26, 2002 at 02:21 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://192747]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-03-28 08:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found