/usr/share/perl5/Class/DBI/Lite/AdHocEntity.pm is in libclass-dbi-lite-perl 1.026-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 | package
Class::DBI::Lite::AdHocEntity;
use strict;
use warnings 'all';
use base 'Class::DBI::Lite';
use Carp 'confess';
#==============================================================================
sub new
{
my ($class, %args) = @_;
return bless \%args, $class;
}# end new()
#==============================================================================
sub create { confess "Cannot call 'create' on a @{[ __PACKAGE__ ]}" }
sub update { confess "Cannot call 'update' on a @{[ __PACKAGE__ ]}" }
sub delete { confess "Cannot call 'delete' on a @{[ __PACKAGE__ ]}" }
#==============================================================================
sub AUTOLOAD
{
my $s = shift;
our $AUTOLOAD;
my ($key) = $AUTOLOAD =~ m/([^:]+)$/;
return unless exists $s->{data}->{$key};
# Read-only access:
$s->{data}->{$key};
}# end AUTOLOAD()
#==============================================================================
sub DESTROY
{
my $s = shift;
undef( %$s );
}# end DESTROY()
1;# return true:
|