1 package Config::Any::General;
6 use base 'Config::Any::Base';
10 Config::Any::General - Load Config::General files
14 Loads Config::General files. Example:
17 <Component Controller::Foo>
19 bar [ arrayref-value ]
29 return an array of valid extensions (C<cnf>, C<conf>).
34 return qw( cnf conf );
39 Attempts to load C<$file> via Config::General.
46 my $args = shift || {};
48 $args->{ -ConfigFile } = $file;
50 require Config::General;
51 Config::General->VERSION( '2.48' );
53 $args->{ -ForceArray } = 1 unless exists $args->{ -ForceArray };
55 my $configfile = Config::General->new( %$args );
56 my $config = { $configfile->getall };
61 =head2 requires_all_of( )
63 Specifies that this module requires L<Config::General> in order to work.
67 sub requires_all_of { [ 'Config::General' => '2.48' ] }
71 Brian Cassidy <bricas@cpan.org>
75 Joel Bernstein <rataxis@cpan.org>
77 =head1 COPYRIGHT AND LICENSE
79 Copyright 2006-2016 by Brian Cassidy
81 Portions Copyright 2006 Portugal Telecom
83 This library is free software; you can redistribute it and/or modify
84 it under the same terms as Perl itself.
92 =item * L<Config::Any>
94 =item * L<Config::General>