in reply to nested Subroutines and my var

KaiAllard,
I have read that my var in Subroutines are hiden (lixical) for any other nested subroutine that is called from main routine and vice versa. Is it right?

Not exactly. It would probably help to read Coping With Scoping. A lexical variable (declared with my) can be seen outwards to the nearest enclosing scope. When you invoke a sub and want to have some variables visible to that sub, you need to pass them to the sub as arguments. The alternative is to declare your lexicals at the same scope as the subs themselves. This is unlikely the right solution.

Cheers - L~R