summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2021-12-03 13:35:53 +0000
committerPaul Evans <leonerd@leonerd.org.uk>2021-12-04 11:39:22 +0000
commit6ac93b496cce8882a9d5494bfedb84f4da7e0aee (patch)
tree39715c51bfcaf9a851f141a929fb07ae4fc39773 /pod
parent6ae4a6b7932dd745639ff335e83dbc87c63031a1 (diff)
downloadperl-6ac93b496cce8882a9d5494bfedb84f4da7e0aee.tar.gz
Add builtin:: funcs for handling weakrefs
Also, ensure that B::Deparse understands the OA_TARGMY optimisation of OP_ISBOOL
Diffstat (limited to 'pod')
-rw-r--r--pod/perlref.pod3
1 files changed, 2 insertions, 1 deletions
diff --git a/pod/perlref.pod b/pod/perlref.pod
index 5cd9ee21f8..f14d85bb3f 100644
--- a/pod/perlref.pod
+++ b/pod/perlref.pod
@@ -493,7 +493,8 @@ You can break circular references by creating a "weak reference". A
weak reference does not increment the reference count for a variable,
which means that the object can go out of scope and be destroyed. You
can weaken a reference with the C<weaken> function exported by the
-L<Scalar::Util> module.
+L<Scalar::Util> module, or available as C<builtin::weaken> directly in
+Perl version 5.35.7 or later.
Here's how we can make the first example safer: