Religion::Bible::Reference

Religion::Bible::Reference can canonicalize shorthand bible references.
Download

Religion::Bible::Reference Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Ricardo Signes
  • Publisher web site:
  • http://search.cpan.org/~rjbs/

Religion::Bible::Reference Tags


Religion::Bible::Reference Description

Religion::Bible::Reference can canonicalize shorthand bible references. Religion::Bible::Reference can canonicalize shorthand bible references.SYNOPSIS use Religion::Bible::Reference; my $quote = bibref("jn8:32"); print "($quote)"; # (John 8:32) print $quote->book; # JohnThis module converts simple text descriptions of bible references and ranges into objects that stringify into a canonical form.WARNING! This module is mostly an idea and not so much a guaranteed interface or well-tested implementation. If you're interested in either of those existing, you should let me know.FUNCTIONSbibref($ref_string)This function is exported by default, and constructs a new Religion::Bible::ReferenceReference strings must be a book followed by a list of chapters, verses, or ranges. The following are all valid ranges: Pro 23:12, 23:15-17 st.jn8:32 Song of Solomon 8:7-8 2 John 1METHODSReligion::Bible::Reference->new($ref_string)This method acts just like the exported bibref function.$self->stringifyThis method returns a string representing the reference, using the canonical book name.$class->canonicalize_book($book_abbrev)If possible, this method returns the canonical name of the book whose abbreviation was passed. validate_verse $class->validate_verse($book, $chapter, $verse)This method returns true if the given book, chapter, and verse exists; otherwise it returns false. iterator my $iterator = $bibref->iterator; while (my $verse = $iterator->next) { my $text = retrieve($verse); print "$textn"; } Requirements: · Perl


Religion::Bible::Reference Related Software