But even if it weren't, it wouldn't do you much good. The biggest effect 'my' has is at compile time - it tells the compiler you have a lexical variable. However, the eval happens at run time - if you'd use '$a' after the eval, '$a' is unknown at compile time (so, if 'use strict' is in effect, it will complain).
In reply to Re: Usage of 'my' in 'eval'
by Perl Mouse
in thread Usage of 'my' in 'eval'
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |