Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Puzzling $| behavior

by ikegami (Pope)
on Oct 08, 2007 at 07:37 UTC ( #643413=note: print w/ replies, xml ) Need Help??


in reply to Re: Puzzling $| behavior
in thread Puzzling $| behavior

The OP's problem is not (just) due to the order in which the operands are executed (left to right). Try

$x=0; printf "%d %d %d\n",$x,$x--,$x;

Note that even though Perl executed the four operand from left to right, the result is -1 -1 -1.


Comment on Re^2: Puzzling $| behavior
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2014-07-28 07:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (193 votes), past polls