When Perl 6 is ready, you will be able to use:
my $plus_op_subref = \&infix:+; my $not_op_subref = \&prefix:!; say $plus_op_subref.(3, 2); # 5
not tested ;)
In reply to Re: Why Perl Is Not My Favourite Functional Programming Language
by iblech
in thread A mini-language for sequences (part 1)
by tmoertel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |