in reply to Blessing tied hash
You can't bless hashes (tied or otherwise). You can only bless references. But yes, you can bless a reference to a tied hash.
JSON::JOM::Object is a blessed reference to a tied hash. And JSON::JOM::Array is a blessed reference to a tied array.
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Blessing tied hash
by zwon (Abbot) on May 05, 2012 at 16:13 UTC | |
by anazawa (Scribe) on May 06, 2012 at 07:24 UTC | |
by zwon (Abbot) on May 06, 2012 at 10:34 UTC | |
by anazawa (Scribe) on May 06, 2012 at 13:29 UTC | |
Re^2: Blessing tied hash
by anazawa (Scribe) on May 05, 2012 at 15:05 UTC |
In Section
Seekers of Perl Wisdom