Libconf::Templates::Inittab - Libconf low level template for inittab file styles config files
Libconf::Templates::Passwd is a template that handles files that contain informations like the ones in /etc/inittab, with lines like :
id:runlevels:action:process
$template = new Libconf::Templates::Inittab({ filename => '/etc/inittab', }); $template->read_conf(); $template->edit_atom(-1, { key => 'l4', values => { runlevels => '45', action => 'once', process => '/etc/rc.d/rc 5', }, }); ... (see L<Libconf::Templates> for transformation methods on $template) ... $template->write_conf();
creates the template
$template = new Libconf::Templates::Inittab({ filename => 'some_file', })
arguments
$options [type : HASH_REF] specifies the options to create the new template instance.
options
filename [type : STRING, default : ''] : the filename of the config file you want to work on. Can be read and written lately by using set_filename and get_filename.
See the Libconf::Templates manpage for the general list of methods you can call on this template.
There is no specific methods