Test 1 is fine. $_ shouldn't be modified in that case. (Not void context.)
Test 2 is the one that fails. It doesn't print == 1234 ==1234== as it should.
In reply to Re^2: Is silent use of $_ for empty argument lists reasonable for "shortcut" functions?
by ikegami
in thread Is silent use of $_ for empty argument lists reasonable for "shortcut" functions?
by Wyrdweaver
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |