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
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
deparse implicit ~~ as explicit with -x2
[perl5.git]
/
lib
/
B
/
Deparse.pm
diff --git
a/lib/B/Deparse.pm
b/lib/B/Deparse.pm
index
4ff427c
..
35d305f
100644
(file)
--- a/
lib/B/Deparse.pm
+++ b/
lib/B/Deparse.pm
@@
-51,7
+51,7
@@
use B qw(class main_root main_start main_cv svref_2object opnumber perlstring
MDEREF_SHIFT
);
MDEREF_SHIFT
);
-$VERSION = '1.4
4
';
+$VERSION = '1.4
5
';
use strict;
use vars qw/$AUTOLOAD/;
use warnings ();
use strict;
use vars qw/$AUTOLOAD/;
use warnings ();
@@
-3118,7
+3118,7
@@
sub pp_aassign { binop(@_, "=", 7, SWAP_CHILDREN | LIST_CONTEXT) }
sub pp_smartmatch {
my ($self, $op, $cx) = @_;
sub pp_smartmatch {
my ($self, $op, $cx) = @_;
- if (
$op->flags & OPf_SPECIAL
) {
+ if (
($op->flags & OPf_SPECIAL) && $self->{expand} < 2
) {
return $self->deparse($op->last, $cx);
}
else {
return $self->deparse($op->last, $cx);
}
else {