/usr/share/perl5/PlSense/Entity/Scalar.pm is in plsense 0.3.1-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 | package PlSense::Entity::Scalar;
use parent qw{ PlSense::Entity };
use strict;
use warnings;
use Class::Std::Storable;
use PlSense::Logger;
{
my %value_of :ATTR( :init_arg<value> :default('') );
sub get_value { my ($self) = @_; return $value_of{ident $self}; }
sub set_value { my ($self, $value) = @_; $value_of{ident $self} = $value; }
sub BUILD {
my ($class, $ident, $arg_ref) = @_;
$class->set_type("scalar");
}
sub to_string {
my $self = shift;
my $ret = "S<".$self->get_value.">";
return $ret;
}
sub clone {
my $self = shift;
return PlSense::Entity::Scalar->new({ value => $value_of{ident $self} });
}
}
1;
__END__
|