summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-07-14 10:38:35 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-07-14 10:38:35 +0000
commit01ec43d06089361423d61a40521883bf73e1944a (patch)
treea27dd1835fe39bd062de7cf4f0a40b35ecbb7e67 /op.c
parent631cfb58c2bd693774ee9ffe59908af4423167d4 (diff)
downloadperl-01ec43d06089361423d61a40521883bf73e1944a.tar.gz
enable UTF-16 filter by default if relevant BOM is seen; various
cleanups (typos, misformatted code, and small bugs) p4raw-id: //depot/perl@6399
Diffstat (limited to 'op.c')
-rw-r--r--op.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/op.c b/op.c
index f1fe50bc87..ec43ccef9c 100644
--- a/op.c
+++ b/op.c
@@ -2684,7 +2684,9 @@ Perl_pmtrans(pTHX_ OP *o, OP *expr, OP *repl)
if (!squash) {
if (t == r ||
(tlen == rlen && memEQ((char *)t, (char *)r, tlen)))
+ {
o->op_private |= OPpTRANS_IDENTICAL;
+ }
}
while (t < tend || tfirst <= tlast) {
@@ -4467,7 +4469,7 @@ Perl_newATTRSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block)
* skipping the prototype check
*/
if (exists || SvPOK(cv))
- cv_ckproto(cv, gv, ps);
+ cv_ckproto(cv, gv, ps);
/* already defined (or promised)? */
if (exists || GvASSUMECV(gv)) {
SV* const_sv;