#!./perl -w
BEGIN {
$| = 1;
chdir 't' if -d 't';
}
print "1..18\n";
my $t = 1;
tie my $c => 'Tie::Monitor';
++$t;
print "ok $t\n";
} else {
print "not ok $t\n";
}
++$t;
}
my($r, $s);
# the thing itself
# concat
$s = $c . $c;
$r = 'x';
$s = $c = $r . 'y';
$s = $c = $c . 'x';
$s = $c = 'x' . $c;
$s = $c = $c . $c;
# adapted from Tie::Counter by Abigail
sub TIESCALAR {
bless {
read => 0,
write => 0,
values => [ 0 ],
};
}
sub FETCH {
my $self = shift;
++$self->{read};
}
sub STORE {
}
sub init {
my $self = shift;
@results;
}