Acme-Tie-Eleet
view release on metacpan or search on metacpan
lib/Acme/Tie/Eleet.pm view on Meta::CPAN
my $fh = shift;
ref $pkg and croak "Not an instance method";
$fh or croak "Filehandle is not an optional paramater";
$fh->autoflush(1);
my $self = &_new; # magic call.
$self->{FH} = $fh;
# Return it.
return bless( $self, $pkg );
}
sub TIESCALAR {
# Process args.
my $pkg = shift;
ref $pkg and croak "Not an instance method";
my $self = &_new; # magic call.
$self->{value} = undef;
# Return it.
return bless( $self, $pkg );
}
#--
# Handlers.
# Catch scalar fetching.
sub FETCH {
my $self = shift;
return $self->_transform( $self->{value} );
( run in 1.403 second using v1.01-cache-2.11-cpan-de7293f3b23 )