From: Rafael Garcia-Suarez Date: Thu, 17 Jun 2010 09:40:36 +0000 (+0200) Subject: Deparse correctly "no VERSION" [perl #75482] X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=30fcd6c4143961133edf166c63dcc423fbcdb973;p=p5sagit%2Fp5-mst-13.2.git Deparse correctly "no VERSION" [perl #75482] --- diff --git a/dist/B-Deparse/Deparse.pm b/dist/B-Deparse/Deparse.pm index 16b5642..61fe293 100644 --- a/dist/B-Deparse/Deparse.pm +++ b/dist/B-Deparse/Deparse.pm @@ -16,7 +16,7 @@ use B qw(class main_root main_start main_cv svref_2object opnumber perlstring OPpTRANS_SQUASH OPpTRANS_DELETE OPpTRANS_COMPLEMENT OPpTARGET_MY OPpCONST_ARYBASE OPpEXISTS_SUB OPpSORT_NUMERIC OPpSORT_INTEGER OPpSORT_REVERSE OPpSORT_INPLACE OPpSORT_DESCEND OPpITER_REVERSED - OPpREVERSE_INPLACE + OPpREVERSE_INPLACE OPpCONST_NOVER SVf_IOK SVf_NOK SVf_ROK SVf_POK SVpad_OUR SVf_FAKE SVs_RMG SVs_SMG CVf_METHOD CVf_LVALUE PMf_KEEP PMf_GLOBAL PMf_CONTINUE PMf_EVAL PMf_ONCE PMf_NONDESTRUCT @@ -1789,7 +1789,7 @@ sub pp_require { $name =~ s/\.pm//g; return "$opname $name"; } else { - $self->unop($op, $cx, $opname); + $self->unop($op, $cx, $op->first->private & OPpCONST_NOVER ? "no" : $opname); } }