in reply to Re: Subroutine chaining idiom requested
in thread Subroutine chaining idiom requested
Did someone say golf?
Of course you probably want strict compliant and it is bad style to modify your arguments in place. In which case it is probably better to make that:sub chain{(*f,*_)=@_;@_=&$_ for@f;@_}
which is still reasonable...sub chain{my($f,$a)=@_;$a=[&$_(@$a)]for@$f;@$a}
In Section
Seekers of Perl Wisdom