in reply to Private variable in class method does not go out of scope

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)

  • Comment on Re: Private variable in class method does not go out of scope

Replies are listed 'Best First'.
Re^2: Private variable in class method does not go out of scope
by daniel85 (Novice) on Jul 08, 2024 at 10:54 UTC
    Thanks, but irrelevant to the question.