mirror of
https://github.com/Perl/perl5.git
synced 2026-01-26 16:39:36 +00:00
In comments, correct two instances of SVf_PADSTALE to SVs_PADSTALE.
This commit is contained in:
parent
1baeb40218
commit
ab8e66c141
4
pad.c
4
pad.c
@ -101,13 +101,13 @@ 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,
|
||||
The flag SVs_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();
|
||||
|
||||
For state vars, SVf_PADSTALE is overloaded to mean 'not yet initialised'
|
||||
For state vars, SVs_PADSTALE is overloaded to mean 'not yet initialised'
|
||||
|
||||
=cut
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user