|Perl Monk, Perl Meditation|
Order of printf statements vs order of actual lines printed outby sg (Pilgrim)
|on Apr 09, 2013 at 04:47 UTC||Need Help??|
sg has asked for the
wisdom of the Perl Monks concerning the following question:
In the following code, note the order of the printf statements; in particular, note the order of the second and the third printfs:
The output of the above code using perl 5, version 16, subversion 1 (v5.16.1) built for MSWin32-x64-multi-thread (with 1 registered patch) is given below -- note the reversal of the outputs from the second and third printf statements:
Question: why is the order of the output lines different from the order of the printf statements?