in reply to Re: Accessing a scalar value in another subroutine?
in thread Accessing a scalar value in another subroutine?
> Why do you want to do this rather than just use POD?
POD is normally used to describe the public API of a module and many people oppose weaving POD snippets close to subs.
Furthermore automatically finding the corresponding POD-part for a function isn't trivial.
Docstrings OTOH are closely tied and great for introspection in an interactive system, like REPLs or applications with embedded scripting.
I'm inspecting LISP docstrings in emacs every day when browsing thru functions.
Cheers Rolf
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Accessing a scalar value in another subroutine?
by Corion (Patriarch) on Sep 23, 2012 at 21:44 UTC | |
by LanX (Saint) on Sep 23, 2012 at 21:51 UTC | |
Re^3: Accessing a scalar value in another subroutine?
by Anonymous Monk on Sep 23, 2012 at 22:34 UTC |
In Section
Seekers of Perl Wisdom