in reply to Re^3: how can i hold temporary values in a recursive function
in thread how can i hold temporary values in a recursive function

This is useful feedback to the OP; "Add strictures then turn your sketch into real code" is not. Neither the string "use strict;\n" nor some code changes would have made the starting conditions less opaque.
  • Comment on Re^4: how can i hold temporary values in a recursive function