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