line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#=============================================== |
2
|
|
|
|
|
|
|
package Banal::Config::General::Extended; |
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
6
|
use utf8; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
8
|
|
5
|
1
|
|
|
1
|
|
27
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
30
|
|
6
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
7
|
1
|
|
|
1
|
|
5
|
no warnings qw(uninitialized); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
40
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
5
|
use Config::General; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
29
|
|
10
|
1
|
|
|
1
|
|
1044
|
use Config::General::Extended; |
|
1
|
|
|
|
|
2248
|
|
|
1
|
|
|
|
|
76
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
our @ISA = qw(Config::General::Extended); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
#************************************************************************* |
15
|
|
|
|
|
|
|
# Public stuff. |
16
|
|
|
|
|
|
|
#************************************************************************* |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
#************************************************************************* |
20
|
|
|
|
|
|
|
# Private stuff. |
21
|
|
|
|
|
|
|
#************************************************************************* |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__END__ |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 NAME |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
Banal::Config::General::Extended - A wrapper around Config::General::Extended with no current additional value other than encapsulation for the moment. |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 SYNOPSIS |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
Here's a snippet. |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
use Banal::Config::General; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
my $foo = Banal::Config::General->new(-ConfigFile=>"path/to/config/file"); |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
# The resulting object is blessed into "Banal::Config::General::Extended". |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
my $v = $foo->value('the-key'); |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
... |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 EXPORT |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
None. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 EXPORT_OK |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
None. |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 AUTHOR |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
"aulusoy", C<< <"dev (at) ulusoy.name"> >> |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 BUGS |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
Please report any bugs or feature requests to C<bug-banal-config at rt.cpan.org>, or through |
63
|
|
|
|
|
|
|
the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Banal-Config>. I will be notified, and then you'll |
64
|
|
|
|
|
|
|
automatically be notified of progress on your bug as I make changes. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 SUPPORT |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
You can find documentation for this module with the perldoc command. |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
perldoc Banal::Config::General::Extended |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
You can also look for information at: |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=over 4 |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=item * RT: CPAN's request tracker (report bugs here) |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Banal-Config> |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=item * AnnoCPAN: Annotated CPAN documentation |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
L<http://annocpan.org/dist/Banal-Config> |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=item * CPAN Ratings |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
L<http://cpanratings.perl.org/d/Banal-Config> |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=item * Search CPAN |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
L<http://search.cpan.org/dist/Banal-Config/> |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=back |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=head1 ACKNOWLEDGEMENTS |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
Copyright 2014 "aulusoy". |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it |
106
|
|
|
|
|
|
|
under the terms of the the Artistic License (2.0). You may obtain a |
107
|
|
|
|
|
|
|
copy of the full license at: |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
L<http://www.perlfoundation.org/artistic_license_2_0> |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
Any use, modification, and distribution of the Standard or Modified |
112
|
|
|
|
|
|
|
Versions is governed by this Artistic License. By using, modifying or |
113
|
|
|
|
|
|
|
distributing the Package, you accept this license. Do not use, modify, |
114
|
|
|
|
|
|
|
or distribute the Package, if you do not accept this license. |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
If your Modified Version has been derived from a Modified Version made |
117
|
|
|
|
|
|
|
by someone other than you, you are nevertheless required to ensure that |
118
|
|
|
|
|
|
|
your Modified Version complies with the requirements of this license. |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
This license does not grant you the right to use any trademark, service |
121
|
|
|
|
|
|
|
mark, tradename, or logo of the Copyright Holder. |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
This license includes the non-exclusive, worldwide, free-of-charge |
124
|
|
|
|
|
|
|
patent license to make, have made, use, offer to sell, sell, import and |
125
|
|
|
|
|
|
|
otherwise transfer the Package with respect to any patent claims |
126
|
|
|
|
|
|
|
licensable by the Copyright Holder that are necessarily infringed by the |
127
|
|
|
|
|
|
|
Package. If you institute patent litigation (including a cross-claim or |
128
|
|
|
|
|
|
|
counterclaim) against any party alleging that the Package constitutes |
129
|
|
|
|
|
|
|
direct or contributory patent infringement, then this Artistic License |
130
|
|
|
|
|
|
|
to you shall terminate on the date that such litigation is filed. |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER |
133
|
|
|
|
|
|
|
AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. |
134
|
|
|
|
|
|
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR |
135
|
|
|
|
|
|
|
PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY |
136
|
|
|
|
|
|
|
YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR |
137
|
|
|
|
|
|
|
CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR |
138
|
|
|
|
|
|
|
CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, |
139
|
|
|
|
|
|
|
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
=cut |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
1; # End of Banal::Config::General::Extended |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
1; |
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
|