in reply to Re^3: Variable being clobbered by a seemingly unrelated while loop
in thread Variable being clobbered by a seemingly unrelated while loop

Lexical variables can be localized - you just can't use the local keyword to do so.

Anonymous monk provides a good demonstration.

  • Comment on Re^4: Variable being clobbered by a seemingly unrelated while loop
  • Download Code