diff options
author | Dave Mitchell <davem@fdisolutions.com> | 2004-02-20 14:18:13 +0000 |
---|---|---|
committer | Dave Mitchell <davem@fdisolutions.com> | 2004-02-20 14:18:13 +0000 |
commit | e6e7068b743187ea85db546863975a687c18915d (patch) | |
tree | 14e69834ce1b3f6370cf7ec588a5ab62e7dfad0a | |
parent | db76d109b178cedf5e14c58bc10857b590668e65 (diff) | |
download | perl-e6e7068b743187ea85db546863975a687c18915d.tar.gz |
Document the SVf_PADSTALE flag
p4raw-id: //depot/perl@22348
-rw-r--r-- | pad.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 */ |