> If you keep both %employees and $employees in the same scope it would provide a (really ugly) way of keeping the original array|hash and its blessed reference
yeah indeed ugly, thats what I meant.
> I don't this is some 'problem' which requires the use of slow modules like autobox ...
Contrary to the believe of the group that flames against me, I'm not propagating autobox as an existing solution! (I was asking a question in another thread about autobox and hit the nerve of a group of united fanboys. But I'm tired to repeat this!)
I was talking about the theoretical benefits JS has over Perl in this respect, because there a hash acn be treated as object right from the beginning.
Tieing this hash provides the same functionality in Perl like altering the object in JS (Phase 2)
BTW: According to the docs, autobox isn't slower than method calls on blessed references. >or some wholesale re-invention of Perl symbology.
A Sigil for each Ref-Type would open a lot of simplifications for problems newbies face when starting to learn Perl.
Believe it or not, many people stop and hate Perl just because of these problems...long before even entering a level allowing to understand Data::AsObject and Hash::AutoHash.
Many thanx for your contribution, it's one of the better ones lifting the level of this discussion! :)
Cheers Rolf
In reply to Re^2: Benefits of everything is an object? Or new sigils?
by LanX
in thread Benefits of everything is an object? Or new sigils?
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |