The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

StanzaFile::Lilo - read, parse, and write Linux Loader configuration files.

SYNOPSIS

There are no interface changes between this and the parent class, StanzaFile::Grub. This is included, partly, as an example of the ease with which additional different stanza file formats can be supported using the StanzaFile class and, mostly, because I used the StanzaFile::Lilo class in a kernel build and installation management package I wrote (check it out, http://www.sourceforge.net/projects/kif/).

DESCRIPTION

The lilo configuration file format differs in a couple of ways from the grug.conf format. Both are in stanzas, but the stanza beginning and the format of the lines in the file are slightly different.

These differences are accommodated by overriding three of the methods defined in StanzaFile::Grub. These are:

$theObject->isBeginning($line)

A predicate which tests the line to see if it is the beginning of a new stanza. If it is, the value of the predicate is the name of the new stanza. Otherwise the value of the predicate is undefined.

$theObject->isValue($line)

A predicate which tests the line to see if it contains a name/value pair and returns that pair as the value of the prediate. Otherwise it returns and undefined.

$theObject->stanzaAsString()

Produce a string suitable for printing that represents a lilo configuration file stanza other than the header.

EXAMPLES

BUGS

WARNINGS

No comments or whitespace are preserved in the configuration file when it is read and/or written.

AUTHOR

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.

SEE ALSO

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 121:

'=item' outside of any '=over'

Around line 138:

You forgot a '=back' before '=head1'