From: Rafael Garcia-Suarez Date: Wed, 4 Nov 2009 17:54:31 +0000 (+0100) Subject: Document qr overloading in perldelta X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=97352077e6c6c736a003d2b96eedafe612acf92a;p=p5sagit%2Fp5-mst-13.2.git Document qr overloading in perldelta --- diff --git a/pod/perl5112delta.pod b/pod/perl5112delta.pod index aea02f3..4d52467 100644 --- a/pod/perl5112delta.pod +++ b/pod/perl5112delta.pod @@ -44,6 +44,14 @@ XXX New core language features go here. Summarise user-visible core language enhancements. Particularly prominent performance optimisations could go here, but most should go in the L section. +=head2 qr overloading + +It is now possible to overload the C operator, that is, conversion +to regexp, like it was already possible to overload conversion to +boolean, string or number of objects. It is invoked when an object +appears on the right hand side of the C<=~> operator, or when it is +interpolated into a regexp. See L. + =head1 New Platforms XXX List any platforms that this version of perl compiles on, that previous