in reply to Re^4: parse lisp style config
in thread parse lisp style config

I test to confirm it, Inner sub is not private. The only benefit may be an reminder inner sub will be only called inside.

Replies are listed 'Best First'.
Re^6: parse lisp style config
by ikegami (Patriarch) on Nov 29, 2024 at 05:26 UTC

    Just use already-mentioned my sub name { ... } instead or sub name { ... } and you will have an actual private inner sub without the drawbacks.

      thanks for emphasize it, I did overlook 'my sub ..', I did not know it is valid, I tried it, but for recursion subs it complains not defined.

        You haven't shown your code but it's a fair guess that you haven't used __SUB__ like the documentation tells you to do:

        my sub baz { __SUB__->(); # calls itself }

        🦛