in reply to Re^2: Variable initialization / reinitialization
in thread Variable initialization / reinitialization

I still don't understand why $flagvalue is retaining it's value when control clearly exits and reenters the parent sub....

Lexical variables don't follow the rules of dynamic scoping. They follow the rules of lexical scoping.

  • Comment on Re^3: Variable initialization / reinitialization