in reply to Infinite Recursion of a Stringin thread Double Interpolation of a String
my $max_recurs = 10;
$max_recurs-- while $string =~ ... && $max_recurs;
warn "Too many recursive substitutions on '$string'"
if !$max_recurs && $^W;
Electric eels were invented at the same time as electricity
Before electricity was invented, electric eels had to stun with gas
Results (338 votes). Check out past polls.