Skip Menu |

This queue is for tickets about the Parse-GutenbergRoget CPAN distribution.

Report information
The Basics
Id: 77390
Status: rejected
Priority: 0/
Queue: Parse-GutenbergRoget

People
Owner: Nobody in particular
Requestors: bkb [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.021
Fixed in: (no value)



Subject: Doesn't seem to work
I downloaded several different files from www.gutenberg.org, including http://www.gutenberg.org/files/22/old/roget15a.zip and tried the module on it: ----------------------- #!/home/ben/software/install/bin/perl use warnings; use strict; use Parse::GutenbergRoget; # These are the files of the Project Gutenberg edition of Roget's thesaurus. my $dir = '/home/ben/data/gutenberg-roget-thesaurus'; #my $file = "$dir/10681-body.txt"; #my $file = "$dir/22.txt"; my $file = "$dir/roget15a.txt"; my %section = parse_roget ($file); print $section{1}[0][0]{text}; ------------------- It did not output anything except error messages: ------------------- [ben@mikan] {08:55 57} tests 511 $ ./gutenberg-roget-thesaurus.pl Use of uninitialized value $previous_section in hash element at /home/ben/software/install/lib/perl5/site_perl/5.12.3/Parse/GutenbergRog et.pm line 182, <$roget> line 17. Use of uninitialized value $previous_section in hash element at /home/ben/software/install/lib/perl5/site_perl/5.12.3/Parse/GutenbergRog et.pm line 183, <$roget> line 17. Use of uninitialized value $previous_section in hash element at /home/ben/software/install/lib/perl5/site_perl/5.12.3/Parse/GutenbergRog et.pm line 182, <$roget> line 18. Use of uninitialized value $previous_section in hash element at /home/ben/software/install/lib/perl5/site_perl/5.12.3/Parse/GutenbergRog et.pm line 183, <$roget> line 18. Use of uninitialized value $previous_section in hash element at /home/ben/software/install/lib/perl5/site_perl/5.12.3/Parse/GutenbergRog et.pm line 182, <$roget> line 19. Use of uninitialized value $previous_section in hash element at /home/ben/software/install/lib/perl5/site_perl/5.12.3/Parse/GutenbergRog et.pm line 183, <$roget> line 19. Use of uninitialized value $previous_section in hash element at /home/ben/software/install/lib/perl5/site_perl/5.12.3/Parse/GutenbergRog et.pm line 182, <$roget> line 20. Use of uninitialized value $previous_section in hash element at /home/ben/software/install/lib/perl5/site_perl/5.12.3/Parse/GutenbergRog et.pm line 183, <$roget> line 20. Use of uninitialized value $previous_section in hash element at /home/ben/software/install/lib/perl5/site_perl/5.12.3/Parse/GutenbergRog et.pm line 182, <$roget> line 55. Use of uninitialized value $previous_section in hash element at /home/ben/software/install/lib/perl5/site_perl/5.12.3/Parse/GutenbergRog et.pm line 183, <$roget> line 55. Use of uninitialized value in print at ./gutenberg-roget-thesaurus.pl line 15. [ben@mikan] {08:56 46} tests 512 $ -------------------- The return value seems to be an empty list.
I haven't looked at this code in a while, but once in a while the contents of the roget.txt file have changed under it. Patches are welcome, but I'm not sure when I'll have time to look at this myself. -- rjbs
On Wed May 23 21:47:15 2012, RJBS wrote: Show quoted text
> I haven't looked at this code in a while, but once in a while the > contents of the roget.txt file have changed under it. Patches are > welcome, but I'm not sure when I'll have time to look at this myself.
Can you put it on github and I will work from there?
On Thu May 24 00:15:43 2012, BKB wrote: Show quoted text
> On Wed May 23 21:47:15 2012, RJBS wrote:
> > I haven't looked at this code in a while, but once in a while the > > contents of the roget.txt file have changed under it. Patches are > > welcome, but I'm not sure when I'll have time to look at this
myself. Show quoted text
> > > Can you put it on github and I will work from there?
Sorry, please ignore the above message, I found it: https://github.com/rjbs/parse-gutenbergroget I searched for it on github this morning but missed it somehow.
no update, rejecting in favor of future pull request. -- rjbs