Bible-Reference
view release on metacpan or search on metacpan
lib/Bible/Reference.pm view on Meta::CPAN
strings: the first being the full-name of the book, and the second the
canonical acronym. Subsequent matching acronyms can optionally be added. These
are acronyms that if found will match to the book, in addition to the canoniocal
acronym.
When you call this method with good input, it will save the new Bible and
internally call C<bible()> to set the new Bible as active.
You may optionally provide an additional arrayref of arrayrefs containing the
maximum verse number for each chapter of a book. This is useful only if you
need to call C<expand_ranges>. If you don't pass this data, a best-guess of the
data will be used.
=head2 expand_ranges
This is a helper method. It's called automatically if C<add_detail> is set to a
true value. The method requires 2 strings: a book name and a chapter/verse
ranges string. It will return a string represented the "expanded" chapter/verse
range.
$r->expand_ranges( 'Mark', '1:3-7' );
( run in 0.731 second using v1.01-cache-2.11-cpan-702932259ff )