in reply to Re^2: eval a reference to a my hash
in thread eval a reference to a my hash

By the time the eval STRING code runs, lexicals don't really have names anymore, so Perl can't look them up by name.

Replies are listed 'Best First'.
Re^4: eval a reference to a my hash
by cdarke (Prior) on Apr 07, 2006 at 10:13 UTC
    And that explains why making them our variables fixes the problem. Many thanks (I'm using an extra hash now and got rid of the eval, but it is worth knowing).
    Cheers