then somebody calling that function is now able to pass it, instead of a hashref, a blessed object providing the same interface; i.e. polymorphism.
This is an interesting argument. Particularly this bit:
it's not easy to, say, quickly override the order a foreach loop will traverse an array.
Any chance of you knocking up an example for this?
In reply to Re^7: use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20
by BrowserUk
in thread use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |