in reply to Re^8: Order of evaluation/interpolation of references
in thread Order of evaluation/interpolation of references
For me it's intuitively natural to think that "$x$y$z" should act like join("",$x,$y,$z) .
But print join ("",${X(1)},${Y(2)}); prints
X Y 22
because it's well defined that all arguments are evaluated before they are passed to a function.
So the whole point of this ill idea of returning the same reference with different side effects could only work because interpolation was inconsistent from the beginning.
Cheers Rolf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: Order of evaluation/interpolation of references
by BrowserUk (Patriarch) on Mar 08, 2012 at 03:30 UTC | |
by LanX (Saint) on Mar 08, 2012 at 12:28 UTC | |
by BrowserUk (Patriarch) on Mar 08, 2012 at 14:19 UTC | |
by trwww (Priest) on Mar 08, 2012 at 16:51 UTC | |
by JavaFan (Canon) on Mar 08, 2012 at 17:40 UTC | |
by BrowserUk (Patriarch) on Mar 08, 2012 at 19:37 UTC |