Problem using Tk::Pod to read embedded POD 
Author Message
 Problem using Tk::Pod to read embedded POD

I'm using Activestate Perl 5.6.1 Build 626 on Windows 2000. My script
uses Tk and I wanted to embed the POD documentation within it. I've
found the GUI version Tk::Pod which I also got from Activestate but it
doesn't work. I've tried using a sample script by Slaven Rezic
tkopdex_pl which does exactly as I want but I get an empty window -
Opening the tkopdex.pl script gives the following error:

C:\Perl>tkpodex.pl
Tk::Error: Can't set -file to `C:/Perl/tkpodex.pl' for
Tk::Pod=HASH(0x1ed1c74):
Can't set -file to `C:/Perl/tkpodex.pl' for
Tk::Pod::Text=HASH(0x1e79d64): Can't
 find POD Invalid file/module name: 'C:/Perl/tkpodex.pl'
 at C:/Perl/site/lib/Tk/Derived.pm line 294

 Tk::Pod::Text::findpod at C:/Perl/site/lib/Tk/Pod/Text.pm line 50
 Tk::Pod::Text::file at C:/Perl/site/lib/Tk/Pod/Text.pm line 60
 Tk::Derived::configure at C:/Perl/site/lib/Tk/Derived.pm line 306
 Tk::Derived::configure at C:/Perl/site/lib/Tk/Derived.pm line 306
 Tk::Pod::openfile at C:/Perl/site/lib/Tk/Pod.pm line 75
 [openfile,{}]
 (menu invoke)

The version is:
$VERSION = substr(q$Revision: 1.15 $, 10) + 2 . "";

I get the same error in my own script:

sub TKHelp {
    use Tk::Pod;
    my $pod = $mw->Pod(-file => $0) ;

Quote:
}

I can use Pod::Text to output the POD to STDOUT so I know it works.

Am I doing something wrong? Any help appreciated

Thanks,

Nigel



Sun, 11 Jan 2004 01:04:08 GMT  
 Problem using Tk::Pod to read embedded POD
I'm using Activestate Perl 5.6.1 Build 626 on Windows 2000. My script
uses Tk and I wanted to embed the POD documentation within it. I've
found the GUI version Tk::Pod which I also got from Activestate but it
doesn't work. I've tried using a sample script by Slaven Rezic
tkopdex_pl which does exactly as I want but I get an empty window -
Opening the tkopdex.pl script gives the following error:

C:\Perl>tkpodex.pl
Tk::Error: Can't set -file to `C:/Perl/tkpodex.pl' for
Tk::Pod=HASH(0x1ed1c74):
Can't set -file to `C:/Perl/tkpodex.pl' for
Tk::Pod::Text=HASH(0x1e79d64): Can't
 find POD Invalid file/module name: 'C:/Perl/tkpodex.pl'
 at C:/Perl/site/lib/Tk/Derived.pm line 294

 Tk::Pod::Text::findpod at C:/Perl/site/lib/Tk/Pod/Text.pm line 50
 Tk::Pod::Text::file at C:/Perl/site/lib/Tk/Pod/Text.pm line 60
 Tk::Derived::configure at C:/Perl/site/lib/Tk/Derived.pm line 306
 Tk::Derived::configure at C:/Perl/site/lib/Tk/Derived.pm line 306
 Tk::Pod::openfile at C:/Perl/site/lib/Tk/Pod.pm line 75
 [openfile,{}]
 (menu invoke)

The version is:
$VERSION = substr(q$Revision: 1.15 $, 10) + 2 . "";

I get the same error in my own script:

sub TKHelp {
    use Tk::Pod;
    my $pod = $mw->Pod(-file => $0) ;

Quote:
}

I can use Pod::Text to output the POD to STDOUT so I know it works.

Am I doing something wrong? Any help appreciated

Thanks,

Nigel



Sun, 11 Jan 2004 05:00:43 GMT  
 Problem using Tk::Pod to read embedded POD

Quote:

> I'm using Activestate Perl 5.6.1 Build 626 on Windows 2000. My script
> uses Tk and I wanted to embed the POD documentation within it. I've
> found the GUI version Tk::Pod which I also got from Activestate but it
> doesn't work. I've tried using a sample script by Slaven Rezic

By me??? Can you send me the script?

Regards,
        Slaven

--

    BBBike - Routenplaner fr Radfahrer in Berlin
    WWW version:     http://www.bbbike.de
    Perl/Tk version: http://bbbike.sourceforge.net



Sun, 11 Jan 2004 04:25:45 GMT  
 Problem using Tk::Pod to read embedded POD
Here's the URL from perltk.org articles on Help:

http://www.perltk.org/articles/help/help.html

Nigel



Sun, 11 Jan 2004 20:32:04 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Pod Problems (using =pod, nesting fonts, and Pod::Text)

2. Pod::Filter, Pod::Usage, and Pod::PlainText now on CPAN

3. Tk::Pod does not resolve link to standard perl pod

4. Extracting embedded Pod for display in Tk

5. Version 1.00 of Pod::Parser and Pod::Usage Available on CPAN

6. how to use pod::html and pod::text

7. Help with POD and Pod::Html

8. SRC: pods - print out all pod paths

9. RFC Pod::Tree - tree-based POD parser

10. Version 1.00 of Pod::Parser and Pod::Usage Available on CPAN

11. option.pod and options.pod (again)

12. option.pod and options.pod

 

 
Powered by phpBB® Forum Software