diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-09 06:26:04 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-09 06:26:04 +0000 |
commit | ce3b816e7fbb57d1e6fa36b1ffbe584312f4d591 (patch) | |
tree | e833c609e88081b33ede467ece05c0dfaab1699c /op.c | |
parent | 0f1923bdafbbf46153592d4c0bb426b7e17d90d7 (diff) | |
download | perl-ce3b816e7fbb57d1e6fa36b1ffbe584312f4d591.tar.gz |
demand-load utf8.pm in swash routines
p4raw-id: //depot/perl@5622
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -5862,7 +5862,13 @@ Perl_ck_require(pTHX_ OP *o) --SvCUR(kid->op_sv); } } - sv_catpvn(kid->op_sv, ".pm", 3); + if (SvREADONLY(kid->op_sv)) { + SvREADONLY_off(kid->op_sv); + sv_catpvn(kid->op_sv, ".pm", 3); + SvREADONLY_on(kid->op_sv); + } + else + sv_catpvn(kid->op_sv, ".pm", 3); } } return ck_fun(o); |