NAME

Libconf::Glueconf::Generic::Shell - Glueconf high level template for shell styles config files

DESCRIPTION

  use Data::Dumper;
  my $make_conf = new Libconf::Glueconf::Generic::Shell({ filename => "/etc/make.conf"
                                                          shell_style => "true_bash",
                                                          shell_command => "/bin/bash",
                                                        });
  print Dumper($make_conf) . "\n";
  $make_conf->{CHOST} = 'i586-pc-linux-gnu';
  $make_conf->write_conf('/etc/make.conf_new');

This template maps any shell config files into a virtual hashref with key => value association. You can edit the hash and regenerate the config file.

CONSTRUCTOR

  my $conf = new Libconf::Glueconf::Generic::Shell({ filename => "shell_style.conf",
                                                     simplify_quote => 1,
                                                   });

The constructore returns a variable which is at the same time an object on which you can call the Glueconf General methods (see Libconf::Glueconf ), and at the same time a reference on a hash, whith the keys/values of your config file.

the options you can give to the constructore are the same as in Libconf::Templates::Shell