| 1 |
NAME |
| 2 |
B::Keywords - Lists of reserved barewords and symbol names |
| 3 |
|
| 4 |
SYNOPSIS |
| 5 |
use B::Keywords qw( @Symbols @Barewords ); |
| 6 |
print join "\n", @Symbols, |
| 7 |
@Barewords; |
| 8 |
|
| 9 |
DESCRIPTION |
| 10 |
"B::Keywords" supplies several arrays of exportable keywords: @Scalars, |
| 11 |
@Arrays, @Hashes, @Filehandles, @Symbols, @Functions, @Barewords, |
| 12 |
@BarewordsExtra, @TieIOMethods, @UNIVERSALMethods and @ExporterSymbols. |
| 13 |
|
| 14 |
The @Symbols array includes the contents of each of @Scalars, @Arrays, |
| 15 |
@Hashes, @Functions and @Filehandles. |
| 16 |
|
| 17 |
Similarly, @Barewords adds a few non-function keywords and operators to |
| 18 |
the @Functions array. |
| 19 |
|
| 20 |
@BarewordsExtra adds a few barewords which are not in keywords.h. |
| 21 |
|
| 22 |
All additions and modifications are welcome. |
| 23 |
|
| 24 |
The perl parser uses a static list of keywords from regen/keywords.pl |
| 25 |
which constitutes the strict list of keywords @Functions and @Barewords, |
| 26 |
though some @Functions are not functions in the strict sense. Several |
| 27 |
library functions use more special symbols, handles and methods. |
| 28 |
|
| 29 |
DATA |
| 30 |
@Scalars |
| 31 |
@Arrays |
| 32 |
@Hashes |
| 33 |
@Filehandles |
| 34 |
@Functions |
| 35 |
The above are lists of variables, special file handles, and built in |
| 36 |
functions. |
| 37 |
|
| 38 |
@Symbols |
| 39 |
This is just the combination of all of the above: variables, file |
| 40 |
handles, and functions. |
| 41 |
|
| 42 |
@Barewords |
| 43 |
This is a list of other special keywords in perl including operators |
| 44 |
and all the control structures. |
| 45 |
|
| 46 |
@BarewordsExtra |
| 47 |
This is a list of barewords which are missing from keywords.h, |
| 48 |
handled extra in the tokenizer. |
| 49 |
|
| 50 |
@TieIOMethods |
| 51 |
Those are special tie or PerlIO methods called by the perl core, |
| 52 |
namely for tieing or PerlIO::via (or both of those) or threads. |
| 53 |
|
| 54 |
@UNIVERSALMethods |
| 55 |
Methods defined by the core package UNIVERSAL. |
| 56 |
|
| 57 |
@ExporterSymbols |
| 58 |
Variables or functions used by Exporter (some internal), which is |
| 59 |
almost as good as being keywords, for you mustn't use them for any |
| 60 |
other purpose in any package that isa Exporter, which is quite |
| 61 |
common. |
| 62 |
|
| 63 |
EXPORT |
| 64 |
Anything can be exported if you desire. Use the :all tag to get |
| 65 |
everything. |
| 66 |
|
| 67 |
SEE ALSO |
| 68 |
regen/keywords.pl from the perl source, perlvar, perlfunc, perldelta. |
| 69 |
|
| 70 |
BUGS |
| 71 |
Please report any bugs or feature requests to "bug-B-Keywords at |
| 72 |
rt.cpan.org", or through the web interface at |
| 73 |
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=B-Keywords>. I will be |
| 74 |
notified, and then you'll automatically be notified of progress on your |
| 75 |
bug as I make changes. |
| 76 |
|
| 77 |
SUPPORT |
| 78 |
You can find documentation for this module with the perldoc command. |
| 79 |
|
| 80 |
perldoc B::Keywords |
| 81 |
|
| 82 |
You can also look for information at: |
| 83 |
|
| 84 |
* RT: CPAN's request tracker |
| 85 |
|
| 86 |
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=B-Keywords> |
| 87 |
|
| 88 |
* GIT repository |
| 89 |
|
| 90 |
<http://github.com/rurban/b-keywords/> |
| 91 |
|
| 92 |
* AnnoCPAN: Annotated CPAN documentation |
| 93 |
|
| 94 |
<http://annocpan.org/dist/B-Keywords> |
| 95 |
|
| 96 |
* CPAN Ratings |
| 97 |
|
| 98 |
<http://cpanratings.perl.org/d/B-Keywords> |
| 99 |
|
| 100 |
* Search CPAN |
| 101 |
|
| 102 |
<http://search.cpan.org/dist/B-Keywords> |
| 103 |
|
| 104 |
ACKNOWLEDGEMENTS |
| 105 |
Michael G Schwern, Reini Urban, Florian Ragwitz and Zsbán Ambrus for |
| 106 |
patches and releases. |
| 107 |
|
| 108 |
COPYRIGHT AND LICENSE |
| 109 |
Copyright 2009 Joshua ben Jore, All rights reserved. Copyright 2013, |
| 110 |
2015, 2017-2021 Reini Urban, All rights reserved. |
| 111 |
|
| 112 |
This program is free software; you can redistribute it and/or modify it |
| 113 |
under the terms of either: |
| 114 |
|
| 115 |
a) the GNU General Public License as published by the Free Software |
| 116 |
Foundation; version 2, or |
| 117 |
|
| 118 |
b) the "Artistic License" which comes with Perl. |
| 119 |
|
| 120 |
SOURCE AVAILABILITY |
| 121 |
This source is in Github: <git://github.com/rurban/b-keywords.git> |
| 122 |
|
| 123 |
AUTHOR |
| 124 |
Joshua ben Jore <[email protected]> |
| 125 |
|
| 126 |
MAINTAINER |
| 127 |
Reini Urban <[email protected]> |
| 128 |
|