Perhaps the main problem is trying to use inside-out objects. I would use a hash otherwise. I have previously used fields to enforce a set of keys, however I understand they are deprecated so I was seeking an alternative. I like the concept of inside-out objects, however there's no easy way to walk the keys. I also wanted to keep the keys in order for outputting a record so a straight hash wouldn't be enough anyway.
Design considerations aside, I have been banging my head against this code for a little while. It would be nice to know why eval is choosing to ignore a lexical until it is named, unfortunately when I try to boil it down to a simple test case, it works, so I am obviously removing the problem as well, and I am not at liberty to post the code I am working on.
Thanks for the reply, anyway
In reply to Re^2: Eval doesn't see lexicals
by Anonymous Monk
in thread Eval doesn't see lexicals
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |