in reply to Re: Using tie to return value of anonymous sub
in thread Using tie to return value of anonymous sub
Well, both. I guess it's just a personal thing with OOP syntax. I'm in favor of using hashes both as an implementation and an API. But it's tough to do the latter in some cases.
Mainly, the place where the OOP method really breaks down is multidimensional data structures. How is something like $player->{react_before}{poisoned} to be used? $player->react_before->{poisoned}? Something even more awkward?
Either way, I guess the real problem is syntax and I guess the real solution is to find a scheme for real methods that I like. Until proper APIs can be created with tie and hashes, I guess I haven't a choice. Thank you.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Using tie to return value of anonymous sub
by ikegami (Patriarch) on Feb 20, 2006 at 23:54 UTC | |
|
Re^3: Using tie to return value of anonymous sub
by DrWhy (Chaplain) on Feb 23, 2006 at 21:08 UTC |