develooper Front page | perl.perl5.porters | Postings from January 2009

perldelta omission for 5.8.9?

Thread Next
Ricardo SIGNES
January 28, 2009 13:07
perldelta omission for 5.8.9?
Message ID:

I forgot about how dramatically more useful qr{} became once qr{}m worked
properly, as demonstrated by this code:

  use strict;
  use Test::More 'no_plan';

  my $string = "Subject: Hello Jimbo Johnson\x0ADate: whatever";

  like($string, '/(?m:^Subject: Hello Jimbo Johnson$)/', "q{//}",);
  like($string, qr{(?m:^Subject: Hello Jimbo Johnson$)}, "qr{(?m:...)}",);
  like($string, qr{^Subject: Hello Jimbo Johnson$}m,     "qr{}m",);

This was fixed in 5.010, but it looks like the fix made it back into 5.8.9
(which is great!) but was not documented, going by

Am I mistaken, or is this an omission to fix in some mythical 5.8.10?


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About