|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Subroutine chaining idiom requestedby princepawn (Parson) |
| on May 24, 2001 at 06:35 UTC ( #82795=perlquestion: print w/ replies, xml ) | Need Help?? |
|
princepawn has asked for the
wisdom of the Perl Monks concerning the following question:
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.
Back to
Seekers of Perl Wisdom
|
|