perlquestion
vsespb
It seems like order of execution of some expressions is undefined, including list of arguments to a function call.
<br>
1: [id://618251]<br>
2: [id://446796]<br>
<br><br>
Now I'm wondering if this is a valid code:
<code>
sub mysub {
my ($a1, $a2) = (shift, shift)
...
</code>
Probably not valid. However I see it's widely used on CPAN: <a href="http://grep.cpan.me/?q=shift\s*%2C\s*shift&page=2">cpan grep</a>
<br>
So, question is: is it allowed by perl documentation?