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

perldelta omission for 5.8.9?

Thread Next
From:
Ricardo SIGNES
Date:
January 28, 2009 13:07
Subject:
perldelta omission for 5.8.9?
Message ID:
20090128210657.GA18416@cancer.codesimply.com

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
http://perldoc.perl.org/5.8.9/perldelta.html

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

-- 
rjbs

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About