summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2004-02-20 14:18:13 +0000
committerDave Mitchell <davem@fdisolutions.com>2004-02-20 14:18:13 +0000
commite6e7068b743187ea85db546863975a687c18915d (patch)
tree14e69834ce1b3f6370cf7ec588a5ab62e7dfad0a
parentdb76d109b178cedf5e14c58bc10857b590668e65 (diff)
downloadperl-e6e7068b743187ea85db546863975a687c18915d.tar.gz
Document the SVf_PADSTALE flag
p4raw-id: //depot/perl@22348
-rw-r--r--pad.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pad.c b/pad.c
index 06f0417f16..316833d6b0 100644
--- a/pad.c
+++ b/pad.c
@@ -91,6 +91,12 @@ become so if C<my sub foo {}> is implemented.)
Note that formats are treated as anon subs, and are cloned each time
write is called (if necessary).
+The flag SVf_PADSTALE is cleared on lexicals each time the my() is executed,
+and set on scope exit. This allows the 'Variable $x is not available' warning
+to be generated in evals, such as
+
+ { my $x = 1; sub f { eval '$x'} } f();
+
=cut
*/