Front page | perl.perl5.porters |
Postings from December 2007
Changes in m//m in 5.10
Thread Next
From:
Andy Lester
Date:
December 19, 2007 13:15
Subject:
Changes in m//m in 5.10
Message ID:
53734387-03AD-459B-AC8B-DC186B07238A@petdance.com
Can someone explain why this is so?
$ cat test.pl
my $buffer = qq{blah\nfoo\nblah};
my $regex = qr/^foo/;
print "Running $], ", $buffer =~ /$regex/m ? 'found' : 'not found',
"\n";
$ perl test.pl
Running 5.008008, found
$ perl510 test.pl
Running 5.010000, not found
ack fails its tests because of this behavior, which is what led me
down this path.
xoxo,
Andy
--
Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance
Thread Next
-
Changes in m//m in 5.10
by Andy Lester