This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fad2337
)
Need to substitute out the placeholder '$RV' for earlier perls too.
author
Nicholas Clark
<nick@ccl4.org>
Wed, 30 Jan 2008 12:16:35 +0000
(12:16 +0000)
committer
Nicholas Clark
<nick@ccl4.org>
Wed, 30 Jan 2008 12:16:35 +0000
(12:16 +0000)
p4raw-id: //depot/perl@33125
ext/Devel/Peek/t/Peek.t
patch
|
blob
|
blame
|
history
diff --git
a/ext/Devel/Peek/t/Peek.t
b/ext/Devel/Peek/t/Peek.t
index
e62ffdf
..
24cac95
100644
(file)
--- a/
ext/Devel/Peek/t/Peek.t
+++ b/
ext/Devel/Peek/t/Peek.t
@@
-44,7
+44,9
@@
sub do_test {
$pattern =~ s/^ *\$IVNV *\n/
($] < 5.009) ? " IV = 0\n NV = 0\n" : '';
/mge;
- $pattern =~ s/\$RV/IV/g if $] >= 5.011;
+ $pattern =~ s/\$RV/
+ ($] < 5.011) ? 'RV' : 'IV';
+ /mge;
$pattern =~ s/^ *\$NV *\n/
($] < 5.011) ? " NV = 0\n" : '';
/mge;