|Just another Perl shrine|
Re^2: Simulating Perl6 Meta/Hyper operators with pure Functional Programmingby LanX (Canon)
|on Oct 01, 2013 at 22:41 UTC||Need Help??|
Sub::Infix is indeed nice, really clever idea ... thanks! :)
My problem with overloading so far was that I couldn't use wantarray, i.e. an overloaded '+' always has to return a scalar.
But you don't have this problem, right?
Anyway ATM I try to find solutions which work w/o overloading to avoid potential side effects.
List::Gen for instance globally overloads the typeglob operator... 8-|
> my $iter = [@list1] |X| [@list2];
yep but the problem here is that the array are evaluated (i.e. listified) before being passed to the operator.
I'd like to be able to inspect the code block before evaluating it.
( addicted to the Perl Programming Language)