Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
There was a near article in about Issue 19 of the Perl Journal called "Design Patterns" in which this guy had a neat one-liner. Let's say we have;
where a, b, c are subs which expect and return arrays. He wrote a one-liner which ran through the subs, taking the output of one and sending it in as the input of the next sub.
In reply to Subroutine chaining idiom requested by princepawn
|
|