diff options
author | Paul "LeoNerd" Evans <leonerd@leonerd.org.uk> | 2022-04-06 12:47:26 +0100 |
---|---|---|
committer | Paul Evans <leonerd@leonerd.org.uk> | 2022-04-23 20:09:59 +0100 |
commit | d84bd0bd478e7c7ff7f57eeb94fda30ee0e34296 (patch) | |
tree | cd959fade4d460df6a04e1895c51756aee4d8c7f /pod/perlfunc.pod | |
parent | 6901d503782a626a02477c4142ee3b88483786dd (diff) | |
download | perl-d84bd0bd478e7c7ff7f57eeb94fda30ee0e34296.tar.gz |
Replace 'use strict; use warnings;' with 'use VERSION' in docs code examples
Diffstat (limited to 'pod/perlfunc.pod')
-rw-r--r-- | pod/perlfunc.pod | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 23431b96a1..fa73276af2 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -5119,7 +5119,7 @@ L<C<our>|/our VARLIST> declaration. This applies immediately--even within the same statement. package Foo; - use strict; + use v5.36; # which implies "use strict;" $Foo::foo = 23; @@ -5136,7 +5136,7 @@ This works even if the package variable has not been used before, as package variables spring into existence when first used. package Foo; - use strict; + use v5.36; our $foo = 23; # just like $Foo::foo = 23 @@ -5147,7 +5147,7 @@ long as there is no variable with that name is already in scope, you can then reference the package variable again even within the same statement. package Foo; - use strict; + use v5.36; my $foo = $foo; # error, undeclared $foo on right-hand side our $foo = $foo; # no errors |