/usr/share/perl5/IO/All/String.pm is in libio-all-perl 0.86-2.
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 | use strict; use warnings;
package IO::All::String;
use IO::All -base;
const type => 'string';
sub string_ref {
my ($self, $ref) = @_;
no strict 'refs';
*$self->{ref} = $ref if exists $_[1];
return *$self->{ref}
}
sub string {
my $self = shift;
bless $self, __PACKAGE__;
$self->_init;
}
sub open {
my $self = shift;
my $str = '';
my $ref = \$str;
$self->string_ref($ref);
open my $fh, '+<', $ref;
$self->io_handle($fh);
$self->_set_binmode;
$self->is_open(1);
}
1;
|