Yes you are allowed to use my there, it is not a syntax error!
No, the behaviour of using a lexical that whose declaration is conditionally executed is undefined. "The value of the my variable may be undef, any previously assigned value, or possibly anything else. Don't rely on it. Future versions of perl might do something different from the version of perl you try it out on. Here be dragons."
In reply to Re^8: syntax of map operator
by ikegami
in thread syntax of map operator
by sman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |