in reply to Re: Eval doesn't see lexicals
in thread Eval doesn't see lexicals
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Eval doesn't see lexicals
by chromatic (Archbishop) on Nov 02, 2005 at 02:15 UTC | |
|
Re^3: Eval doesn't see lexicals
by Anonymous Monk on Nov 02, 2005 at 02:20 UTC | |
by tilly (Archbishop) on Nov 02, 2005 at 02:26 UTC |