Skip Menu |

This queue is for tickets about the Text-Ngram CPAN distribution.

Report information
The Basics
Id: 59858
Status: resolved
Worked: 5 min
Priority: 0/
Queue: Text-Ngram

People
Owner: ambs [...] cpan.org
Requestors: ANDK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 0.11
  • 0.09
  • 0.10
Fixed in: (no value)



Subject: lowercase=>0 misbehaves
% perl -e ' use Text::Ngram qw(ngram_counts); use YAML::Syck qw(Dump); print Dump ngram_counts({lowercase=>0}, "Hehe", 3); ' Use of uninitialized value $buffer in substitution (s///) at /usr/local/lib/perl/5.10.1/Text/Ngram.pm line 59. Use of uninitialized value $buffer in substitution (s///) at /usr/local/lib/perl/5.10.1/Text/Ngram.pm line 62. Use of uninitialized value in transliteration (tr///) at /usr/local/lib/perl/5.10.1/Text/Ngram.pm line 68. Use of uninitialized value in subroutine entry at /usr/local/lib/perl/5.10.1/Text/Ngram.pm line 165. --- "\0%2": 1 "%24": 1 240: 1 40s: 1 What gives?
Hello, Andreas. Fixed and uploaded to CPAN. Stupid (really stupid) bug. No idea how nobody noticed it before ;) Thank you Alberto