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

Hi all,

I'm in the process of spec'ing a Tk frontend to AI::NNFlex. The frontend will be a standalone script, that does a require on various subclasses of NNFlex. It would be nice to provide a detailed help option in the Tk app. The question is, can I get the POD documentation from a module (or indeed the script itself) into a variable so I can display it as a GUI help screen? Having separate help text & POD strikes me as a waste of time and effort, as well as likely to introduce errors & out of date information.

Update: Tk::Pod looks like what I was looking for. Thanks.

--------------------------------------------------------------

g0n, backpropagated monk

Replies are listed 'Best First'.
Re: Using POD as help in a Tk app
by DrPeter (Scribe) on Jun 17, 2005 at 12:00 UTC
    You might want to take a look at Tk::Pod.

    I have only played with it a little bit, but it looks pretty impressive.

Re: Using POD as help in a Tk app
by thundergnat (Deacon) on Jun 17, 2005 at 11:05 UTC

    Kind of a hack, but you could just capture the output of perldoc. Use the -T switch to bypass any pagers.

    my $perldocs = `perldoc -T Some::Module`;