You have used || in a context, where you thought to test for defined. But it tests for truth, that's something different here, and that test fails, gets your NONE printed.
For defined, there is the // operator.
Cheers, Sören
Créateur des bugs mobiles - let loose once, run everywhere.
(hooked on the Perl Programming language)
In reply to Re: Private variable in class method does not go out of scope
by Happy-the-monk
in thread Private variable in class method does not go out of scope
by daniel85
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |