/usr/share/perl5/Config/Merge/Perl.pm is in libconfig-merge-perl 1.04-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | package Config::Merge::Perl;
use strict;
use warnings FATAL => 'all', NONFATAL => 'redefine';
=head1 NAME
Config::Merge::Perl - Load Perl config files
=head1 DESCRIPTION
Loads Perl files. Example:
{
name => 'TestApp',
'Controller::Foo' => {
foo => 'bar'
},
'Model::Baz' => {
qux => 'xyzzy'
}
}
Any error/warning in the file will throw a fatal error.
=head1 METHODS
=head2 extensions( )
return an array of valid extensions (C<pl>, C<perl>).
=cut
sub extensions {qw( pl perl );}
=head2 load( $file )
Attempts to load C<$file> as a Perl file.
=cut
sub load {
my $class = shift;
my $file = shift;
delete $INC{$file};
local ($^W) = 1;
local $SIG{__WARN__} = sub { die $_[0]};
require $file;
}
=head1 SEE ALSO
L<Config::Merge>
=head1 THANKS
Thanks to Joel Bernstein and Brian Cassidy for the original Config::Any::Perl
module
=head1 BUGS
None known
=head1 AUTHOR
Clinton Gormley, E<lt>clinton@traveljury.comE<gt>
=head1 COPYRIGHT
Copyright (C) 2007 by Clinton Gormley
=cut
=head1 LICENSE
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.8.7 or,
at your option, any later version of Perl 5 you may have available.
=cut
1;
|