/usr/share/perl5/AnyData/Format/Base.pm is in libanydata-perl 0.12-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 | #########################################################
package AnyData::Format::Base;
#########################################################
# AnyData driver for plain text files
# copyright (c) 2000, Jeff Zucker <jeff@vpservices.com>
#########################################################
use strict;
use warnings;
use vars qw( @ISA $DEBUG );
$DEBUG = 0;
sub new {
my $class = shift;
my $self = shift || {};
$self->{record_sep} ||= "\n";
### $self->{slurp_mode} = 1 unless defined $self->{slurp_mode};
return bless $self, $class;
}
sub DESTROY {
# print "PARSER DESTROYED"
}
sub get_data { undef }
sub storage_type { undef }
sub init_parser { undef }
sub write_fields {
my $self = shift;
my @ary = @_;
return \@ary;
}
sub read_fields {
my $self = shift;
my $aryref = shift;
return @$aryref;
}
1;
|