in reply to Re^6: Making each(@ary) work on 5.10?
in thread Making each(@ary) work on 5.10?

tobyink finally twigs that sedusedan==SHARYANTO.

I don't plan on uploading it. Probably better to bundle the module rather than inline it. Especially as you seem to be inlining it three times.

Be aware that Syntax::Feature:: modules use a different mechanism for installing methods to their caller. They don't use import but instead use a method called install. My own Syntax::Feature::Maybe is a fairly simple demonstration.

Be aware that the original version of Tie::ArrayAsHash has a bug in EXISTS. The second version fixes that. Also, the second version uses CORE::each internally within aeach mostly just to clarify what's going on, but also just in case some bizarro situation ends up making it recursively call itself when installed as CORE::GLOBAL::each.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'