diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-06-17 13:29:04 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-06-17 13:32:58 -0700 |
commit | 4a904372e4d28940f0bcc3b8501925d58b3f0e68 (patch) | |
tree | 61615a52d9e4f65843b6a0f8f415c76b247d9f69 /lib | |
parent | 65613fc23b9817bb12168505453c08d1b6b1baf2 (diff) | |
download | perl-4a904372e4d28940f0bcc3b8501925d58b3f0e68.tar.gz |
Doc update for changes in 5.15.0 + tweaks
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CORE.pod | 5 | ||||
-rw-r--r-- | lib/feature.pm | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lib/CORE.pod b/lib/CORE.pod index c917bba44a..b96c1de2d6 100644 --- a/lib/CORE.pod +++ b/lib/CORE.pod @@ -10,11 +10,14 @@ CORE - Pseudo-namespace for Perl's core routines print hex("0x50"),"\n"; # prints 1 print CORE::hex("0x50"),"\n"; # prints 80 + CORE::say "yes"; # prints yes =head1 DESCRIPTION The C<CORE> namespace gives access to the original built-in functions of -Perl. There is no C<CORE> package, and therefore you do not need to use or +Perl. It also provides access to keywords normally available +only through the L<feature> pragma. There is no C<CORE> +package, and therefore you do not need to use or require an hypothetical "CORE" module prior to accessing routines in this namespace. diff --git a/lib/feature.pm b/lib/feature.pm index c32244087a..2ee1018e28 100644 --- a/lib/feature.pm +++ b/lib/feature.pm @@ -55,7 +55,9 @@ It is usually impossible to add new syntax to Perl without breaking some existing programs. This pragma provides a way to minimize that risk. New syntactic constructs, or new semantic meanings to older constructs, can be enabled by C<use feature 'foo'>, and will be parsed -only when the appropriate feature pragma is in scope. +only when the appropriate feature pragma is in scope. (Nevertheless, the +C<CORE::> prefix provides access to all Perl keywords, regardless of this +pragma.) =head2 Lexical effect |