CGI-Application-Plugin-ConfigAuto

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN


  std_config()
    "std_config()" in CGI::Application::Standard::Config is implemented to
    comply with CGI::Application::Standard::Config. It's for developers.
    Users can ignore it.

  cfg_file()
     # Usual
     $self->cfg_file('my_config_file.pl');
    
     # Supply the first format, guess the second
     $self->cfg_file('my_config_file.pl',{ format => 'perl' } );

    Supply an array of config files, and they will be processed in order. If
    a hash reference if found it, will be used to supply the format for the
    previous file in the array.

FILE FORMAT HINTS
  Perl
    Here's a simple example of my favorite config file format: Perl. Having
    the "shebang" line at the top helps "Config::Auto" to identify it as a

lib/CGI/Application/Plugin/ConfigAuto.pm  view on Meta::CPAN

    if (ref $cfg) {
        return wantarray ? %$cfg : $cfg;
    }
}

=head2 cfg_file()

 # Usual
 $self->cfg_file('my_config_file.pl');
    
 # Supply the first format, guess the second
 $self->cfg_file('my_config_file.pl',{ format => 'perl' } );

Supply an array of config files, and they will be processed in order.  If a
hash reference if found it, will be used to supply the format for the previous
file in the array.

=cut

sub cfg_file {
    my $self = shift;



( run in 2.543 seconds using v1.01-cache-2.11-cpan-748bfb374f4 )