in reply to Non-definition of lexical referenced in string eval

I think you may be looking for Doubly-nested deeply bound variable is undefined, which is the same thing, but without eval STR. From a response by chromatic there, this may be fixed in perl 5.10. I say "may" because you're using an eval-string which may cause it to be different from the bug reported, but, still, it might work :-)

  • Comment on Re: Non-definition of lexical referenced in string eval

Replies are listed 'Best First'.
Re^2: Non-definition of lexical referenced in string eval
by almut (Canon) on Dec 16, 2008 at 16:12 UTC
    ...this may be fixed in perl 5.10

    For the record, 5.10.0 in this case (without preceding access) warns 'Variable "$common" is not available at (eval 1) line 2.'.

      Thanks almut, I think you resolved two posts in one.
Re^2: Non-definition of lexical referenced in string eval
by AnomalousMonk (Archbishop) on Dec 16, 2008 at 16:14 UTC
    Ah — Now some light begins to glimmer! Many thanks.