summaryrefslogtreecommitdiff
path: root/pod/perlop.pod
diff options
context:
space:
mode:
authorWolfgang Laun <Wolfgang.Laun@alcatel.at>2007-03-14 08:56:45 +0100
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-03-14 07:51:57 +0000
commit85dd5c8b1ea878e2c60e931a7dfea76be9cfe46d (patch)
tree4ca95d5305124b97f86349f74b437bd90f7ef901 /pod/perlop.pod
parenta35a87e73d19b61371e17b22fda65883c899839f (diff)
downloadperl-85dd5c8b1ea878e2c60e931a7dfea76be9cfe46d.tar.gz
perlfunc.pod (ref results), perlop.pod (qr// result)
Message-ID: <45F79CAD.5050005@thalesgroup.com> p4raw-id: //depot/perl@30575
Diffstat (limited to 'pod/perlop.pod')
-rw-r--r--pod/perlop.pod6
1 files changed, 5 insertions, 1 deletions
diff --git a/pod/perlop.pod b/pod/perlop.pod
index 411414c815..e02ad41f50 100644
--- a/pod/perlop.pod
+++ b/pod/perlop.pod
@@ -1056,11 +1056,15 @@ This operator quotes (and possibly compiles) its I<STRING> as a regular
expression. I<STRING> is interpolated the same way as I<PATTERN>
in C<m/PATTERN/>. If "'" is used as the delimiter, no interpolation
is done. Returns a Perl value which may be used instead of the
-corresponding C</STRING/imosx> expression.
+corresponding C</STRING/imosx> expression. The returned value is a
+normalized version of the original pattern. It magically differs from
+a string containing the same characters: ref(qr/x/) returns "Regexp",
+even though dereferencing the result returns undef.
For example,
$rex = qr/my.STRING/is;
+ print $rex; # prints (?si-xm:my.STRING)
s/$rex/foo/;
is equivalent to