Skip Menu |

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

Report information
The Basics
Id: 49613
Status: resolved
Priority: 0/
Queue: Text-BibTeX

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

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



Subject: Text::BibTeX::Name needs to load Text::BibTeX
If I try to use Text::BibTeX::Name in the following one-liner, I get an error: % perl -MText::BibTeX::Name -e '$n=Text::BibTeX::Name->new("John Paul Jones")' Can't locate object method "_split" via package "Text::BibTeX::Name" at /Library/Perl/5.8.8/darwin-thread-multi-2level/Text/BibTeX/Name.pm line 316. This is because Text::BibTeX::Name doesn't ever load Text::BibTeX. A simple fix is just to add "use Text::BibTeX;" somewhere in Text::BibTeX::Name.
On Thu Sep 10 23:18:54 2009, KWILLIAMS wrote: Show quoted text
> If I try to use Text::BibTeX::Name in the following one-liner, I get > an error: > > % perl -MText::BibTeX::Name -e '$n=Text::BibTeX::Name->new("John > Paul Jones")' > Can't locate object method "_split" via package "Text::BibTeX::Name" > at > /Library/Perl/5.8.8/darwin-thread-multi-2level/Text/BibTeX/Name.pm > line 316. > > This is because Text::BibTeX::Name doesn't ever load Text::BibTeX. A > simple fix is just to add > "use Text::BibTeX;" somewhere in Text::BibTeX::Name.
Just had this exact same problem (Linux, Perl 5.10.0). None of the examples in Text::BibTeX::Name work unless "use Text::BibTex;" is there. At least fixing the POD to include this information would be a nice thing :) Great module, btw!
Fixed on svn. 0.41 will include patch and fly to cpan during the weekend.