in reply to Re^3: A curious case of of my()
in thread A curious case of of my()
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: A curious case of of my()
by anonymized user 468275 (Curate) on Apr 05, 2011 at 11:52 UTC | |
by JavaFan (Canon) on Apr 05, 2011 at 11:55 UTC |