Perl: the Markov chain saw | |
PerlMonks |
Re^2: Combinatoricsby Aristotle (Chancellor) |
on Aug 22, 2002 at 10:38 UTC ( [id://191974]=note: print w/replies, xml ) | Need Help?? |
Yes, it will. In fact you can cut down on the amount of useless processing further by replacing all those returns with
return map [$_], @_ if $n == 1;
and then you have the equivalent to the code I wrote, except passing around full lists rather than just an arrayref.
Makeshifts last the longest.
In Section
Seekers of Perl Wisdom
|
|