$result = ""; for (my $ctr=1;$ctr<4;$ctr++) { $result .= "recursion count: $ctr\n\n"; } #### ajaxresponder