This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #96228] perlop misdocuments ${ qr/x/ } as undef
authorChas. Owens <chas.owens@gmail.com>
Sun, 7 Aug 2011 19:37:10 +0000 (12:37 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 7 Aug 2011 20:26:46 +0000 (13:26 -0700)
pod/perlop.pod

index f9d80d3..9e83c52 100644 (file)
@@ -1308,8 +1308,10 @@ 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/msixpodual> expression. The returned value is a
 normalized version of the original pattern. It magically differs from
-a string containing the same characters: C<ref(qr/x/)> returns "Regexp",
-even though dereferencing the result returns undef.
+a string containing the same characters: C<ref(qr/x/)> returns "Regexp";
+however, dereferencing it is not well defined (you currently get the 
+normalized version of the original pattern, but this may change).
+
 
 For example,