in reply to understand and prevent 'Out of memory!' during sub recursion
&inter if grep @$_, @_
You can also use the tail recursion goto &inter here, as there's nothing happening after returning from the recursion.
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: understand and prevent 'Out of memory!' during sub recursion
by Discipulus (Canon) on Nov 09, 2017 at 10:39 UTC | |
by choroba (Cardinal) on Nov 09, 2017 at 11:15 UTC |