Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: print behavior

by Moron (Curate)
on Jul 12, 2007 at 08:36 UTC ( #626170=note: print w/ replies, xml ) Need Help??


in reply to print behavior

Many different replies about something being wrong and yet if we break down into the ordered steps one should expect Perl or even C to take:

1) evaluate a list of two arguments 0) $x = 0 and 1) $x++ = 0.

2) increment $x so that the list of arguments is now 0: $x=1 and 1) $x++ = 0 (stays unchanged - that's what postincrement is for!)

3) Call the function with the two arguments whose values we just established should be 1 and 0 respectively.

Then we see that the results are the only results we should expect to happen!

__________________________________________________________________________________

^M Free your mind!


Comment on Re: print behavior

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (12)
As of 2014-12-18 21:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (66 votes), past polls