in reply to Need help with Tree::Nary

The man page says The traversal can be halted at any point by returning TRUE from FUNCTION.

Your function doesn't have an explicit return so the return value is value returnd by the last statement, which is print , which returns true on success.

Therefore, put a return 0; into the last line of your printsub subroutine.

Replies are listed 'Best First'.
Re: Re: Need help with Tree::Nary
by ido50 (Scribe) on Apr 26, 2004 at 12:53 UTC
    Thank you very much, that fixed it.

    -------------------------
    Live fat, die young