summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-07-07 00:27:10 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-07-07 00:27:10 +0000
commitc4d0567e9fc5bde6a4a00063c85389a6cca2fc60 (patch)
treeca43459dff22396376a502ee7afc2eb6cd25b999 /op.c
parentbb0110d410c66f6632e3298bdc2f0b74789a991b (diff)
downloadperl-c4d0567e9fc5bde6a4a00063c85389a6cca2fc60.tar.gz
make diagnostic on C<my $^I> etc., more readable
p4raw-id: //depot/perl@3627
Diffstat (limited to 'op.c')
-rw-r--r--op.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/op.c b/op.c
index 44700dd3e5..e1d697695a 100644
--- a/op.c
+++ b/op.c
@@ -142,7 +142,7 @@ Perl_pad_allocmy(pTHX_ char *name)
(PL_hints & HINT_UTF8 && (name[1] & 0xc0) == 0xc0) ||
name[1] == '_' && (int)strlen(name) > 2))
{
- if (!isPRINT(name[1])) {
+ if (!isPRINT(name[1]) || strchr("\t\n\r\f", name[1])) {
/* 1999-02-27 mjd@plover.com */
char *p;
p = strchr(name, '\0');