Perl Monk, Perl Meditation | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | 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.
Cheers Rolf ( addicted to the Perl Programming Language) In reply to Re^2: Simulating Perl6 Meta/Hyper operators with pure Functional Programming
by LanX
|
|