# Assuming $entry comes from a database of the 'Bib' structure # (i.e., that it's blessed into the BibEntry class, which inherits # the format method from BibFormat): @blocks = $entry->format;
"BibFormat" (the "Text::BibTeX" prefix will be dropped for brevity) pays attention to almost all of the structure options described in Text::BibTeX::Bib; it only ignores those that cover sorting, currently just "sortby". In particular, all of the ``markup'' options control what language is generated by "BibFormat"; if none of those options are set, then it will generate plain, unmarked text.
The only method in "BibFormat"'s documented interface (so far) is "format". (The class defines many other methods, but these should not be necessary to outsiders, so they are undocumented and subject to change.)
Returns a list of ``blocks,'' which can either be jammed together like sentences (for a traditional ``tight'' bibliography) or printed on separate lines (for an ``open'' bibliography format). Each block is a reference to a list of sentences; sentences should be joined together with an intervening period. Each sentence is either a single string or a list of clauses; clauses should be joined together with an intervening comma. Each clause is just a simple string.
See the source code for "btformat" for an example of how to use the output of "format".