Stanza - Container for holding data parsed from stanza files.
# Instantiate or clone a copy of a stanza. # my $theStanza = new Stanza('Stanza Name') ; # Add a datum to a Stanza. # $theStanza->add('newDatum', 'value') ; # Fetch or store an item in a Stanza. # my $theOldValue = $theStanza->item('newDatum') ; $theStanza->item('newDatum', 'newValue') ; # Merge the contents of two stanzas. # $theNewStanza->merge($theOldStanza) ; # Get/set the name of the stanza. # $theStanza->name() ; $theStanza->name('newName') ; # Get the order in which data were added to the stanza. # foreach ($theStanza->order()) { ... ; } ;
The Stanza class provides a syntax free container for holding stanza datum/value pairs. As a consequence, StanzaFile formatting must be done in the classes using the Stanza class, not by the Stanza class or sub-classes thereof.
None known.
Dick Munroe (munroe@csworks). I'm looking for work. If you hear of anything that might be of interest to a VERY senior engineer/architect drop me a note. See http://www.acornsw.com/resume/dick.html for details.
To install StanzaFile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm StanzaFile
CPAN shell
perl -MCPAN -e shell install StanzaFile
For more information on module installation, please visit the detailed CPAN module installation guide.