I stand corrected, I chose '|' pretty arbitrarily to mimic unix pipes, and assumed that the left operand would always be evaluated first. I do know what "left associative" means though, there was an "and" in that sentance :-)
perl -e 'print sub { "Hello @{[shift->()]}!\n" }->(sub{"World"})'
In reply to Re^2: Functional Composition
by billh
in thread Functional Composition
by billh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |