I did of course test my assertions before presenting them.Care to post the test that showed @array is a global variable?
If the array were lexical it would not persist between calls to the subroutine.That's not the definition of a lexical variable.
All of your points are in fact incorrectPlease show some code that proves my @array if EXPR; generates a global variable. Or how enabling strict and warnings would have pointed out the problem to the OP.
In reply to Re^4: A curious case of of my()
by JavaFan
in thread A curious case of of my()
by fleetingflicker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |