|Problems? Is your data what you think it is?|
eval order of args to a subby otto (Beadle)
|on May 30, 2007 at 18:10 UTC||Need Help??|
otto has asked for the wisdom of the Perl Monks concerning the following question:
Is there a perl language spec on the order of evaluation of the arguments to a sub call?
As an example, suppose you have a sub that takes arguments, and in the call to the sub, the arguments are manipulated, causing a mutation to values. Hence the order of the argument evaluation just prior to the actual sub call will result in different values actually received by the sub.
Yes I can write a test program to determine an order, but unless that is part of the perl language spec, then it may not be the same for all versions of perl on various platforms.
This is a top-level posting of a question raised in nodes around 617201