develooper Front page | perl.perl5.changes | Postings from January 2019

[perl.git] branch blead updated. v5.29.7-16-g4829a1eae8

Tony Cook
January 22, 2019 03:42
[perl.git] branch blead updated. v5.29.7-16-g4829a1eae8
Message ID:
In perl.git, the branch blead has been updated


- Log -----------------------------------------------------------------
commit 4829a1eae86ed3e8609d4c93e7c8f8800785c4bb
Author: Tony Cook <>
Date:   Wed Jan 16 09:42:16 2019 +1100

    (perl #133751) qr// is already blessed


Summary of changes:
 pod/perlfunc.pod | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index 7c37a0e775..973a2612d7 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -6379,7 +6379,9 @@ C<HASH>, C<CODE>, C<FORMAT>, or C<IO>, indicating only which kind of
 object it is.  If the unblessed referent is a scalar, then the return
 value will be one of the strings C<SCALAR>, C<VSTRING>, C<REF>, C<GLOB>,
 C<LVALUE>, or C<REGEXP>, depending on the kind of value the scalar
-currently has.  Beware that these built-in type names can also be used as
+currently has.   But note that C<qr//> scalars are created already
+blessed, so C<ref qr/.../> will likely return C<Regexp>.  Beware that
+these built-in type names can also be used as
 class names, so C<ref> returning one of these names doesn't unambiguously
 indicate that the referent is of the kind to which the name refers.

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