Subject: | some outputs are incorrect |
When Scalar::Properties is used, some outputs are incorrect.
For example:
use Scalar::Properties;
my $test = 0;
print "$test\n";
print "\$test\n";
print "\\$test\n";
print "\\\$test\n";
print "\\\\$test\n";
If there is no problem, outputs should be 0, $test, \0, \$test and \\0.
But in actual outputs are 0, \$test, \\0, \\\$test and \\\\0.
I thought this problem is in the module source's line 128.
So I modified '$_[0]->{_value}' into '$_[0]->{_interp}' and
deleted line 129 '$v =~ s/\\n/\n/gs;'.
Then it works correctly.