Message-Id: <
199711221445.OAA14153@crypt.compulink.co.uk>
Subject: Re: [PERL] Here-doc in s///e (was: Bug)
p4raw-id: //depot/win32/perl@629
# $RCSfile: lex.t,v $$Revision: 4.1 $$Date: 92/08/07 18:27:04 $
-print "1..27\n";
+print "1..28\n";
$x = 'x';
print "FOOZ" =~ /^$foo[$A-Z]$/ ? "ok 26\n" : "not ok 26\n";
print (((q{{\{\(}} . q{{\)\}}}) eq '{{\(}{\)}}') ? "ok 27\n" : "not ok 27\n");
+
+$foo = "not ok 28\n";
+$foo =~ s/^not /substr(<<EOF, 0, 0)/e;
+ Ignored
+EOF
+print $foo;
return (*funcp)(idx, buf_sv, maxlen);
}
-
static char *
filter_gets(register SV *sv, register PerlIO *fp, STRLEN append)
{
register char *d;
register char *e;
char *peek;
- int outer = (rsfp && !lex_inwhat);
+ int outer = (rsfp && !(lex_inwhat == OP_SCALAR));
s += 2;
d = tokenbuf;