Discipulus has asked for the wisdom of the Perl Monks concerning the following question:

hi monks !

I have a trouble-script that calls 10 times the sub A, this sub A calls many-many times sub B.
'cause the script is a trouble I enabled the -w switch.
in the output of -w I find :main:subA called at line xx every time after :main:subB called at line xx .
is the normal behaviour 'cause the caller was sub A or does it means that i call many-many time sub A?

Replies are listed 'Best First'.
Re: -w switch and subs
by arthas (Hermit) on May 28, 2003 at 13:24 UTC
    In a similar situation, I get no warnings. Could you post (part of) your code so we can see it?

    Thanks, Michele.
Re: -w switch and subs
by djantzen (Priest) on May 28, 2003 at 21:40 UTC

    Does the script ever finish, or do you have to kill the process? It sounds like perhaps sub B calls sub A and you're getting deep recursion.


    "The dead do not recognize context" -- Kai, Lexx