cbraga has asked for the wisdom of the Perl Monks concerning the following question:
Possible solution: Make the object act as a tied hash, which can be interpolated. When a property being set or got requires special processing do it, otherwise just set/get the value in the ordinary, blessed object hash ref. Let ordinary methods work as usual.
Has anybody tried this yet? Can it even be done? What pitfalls might lie in the way?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: bless + tie
by blokhead (Monsignor) on Oct 01, 2003 at 05:52 UTC | |
by cbraga (Pilgrim) on Oct 01, 2003 at 06:21 UTC | |
|
Re: bless + tie
by tachyon (Chancellor) on Oct 01, 2003 at 05:58 UTC | |
by cbraga (Pilgrim) on Oct 01, 2003 at 06:13 UTC | |
by tachyon (Chancellor) on Oct 01, 2003 at 06:38 UTC | |
by bsb (Priest) on Oct 01, 2003 at 07:19 UTC | |
|
Re: bless + tie
by dws (Chancellor) on Oct 01, 2003 at 06:14 UTC | |
by cbraga (Pilgrim) on Oct 01, 2003 at 06:17 UTC | |
by dws (Chancellor) on Oct 01, 2003 at 06:22 UTC | |
by cbraga (Pilgrim) on Oct 01, 2003 at 06:36 UTC | |
|
Re: bless + tie
by demerphq (Chancellor) on Oct 02, 2003 at 12:18 UTC | |
|
Re: bless + tie
by Anonymous Monk on Oct 02, 2003 at 19:24 UTC | |
|
Re: bless + tie
by tilly (Archbishop) on Oct 05, 2003 at 02:59 UTC |