Lists of reserved barewords and symbol names
use B::Keywords qw( @Symbols @Barewords ); print join "\n", @Symbols, @Barewords;
\*(C`B::Keywords\*(C' supplies several arrays of exportable keywords: @Scalars, @Arrays, @Hashes, @Filehandles, @Symbols, @Functions, @Barewords, @TieIOMethods, @UNIVERSALMethods and @ExporterSymbols.
The @Symbols array includes the contents of each of @Scalars, @Arrays, @Hashes, @Functions and @Filehandles.
Similarly, @Barewords adds a few non-function keywords and operators to the @Functions array.
All additions and modifications are welcome.
The perl parser uses a static list of keywords from regen/keywords.pl which constitutes the strict list of keywords @Functions and @Barewords, though some @Functions are not functions in the strict sense. Several library functions use more special symbols, handles and methods.
The above are lists of variables, special file handles, and built in functions. This is just the combination of all of the above: variables, file handles, and functions. This is a list of other special keywords in perl including operators and all the control structures. Those are special tie or PerlIO methods called by the perl core, namely for tieing or PerlIO::via (or both of those) or threads. Methods defined by the core package \s-1UNIVERSAL\s0. Variables or functions used by Exporter (some internal), which is almost as good as being keywords, for you mustn't use them for any other purpose in any package that isa Exporter, which is quite common.
Anything can be exported if you desire. Use the :all tag to get everything.
regen/keywords.pl from the perl source, perlvar, perlfunc, perldelta.
Please report any bugs or feature requests to \*(C`bug-B-Keywords at rt.cpan.org\*(C', or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=B-Keywords <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=B-Keywords>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
perldoc B::Keywords
You can also look for information at:
\s-1RT:\s0 \s-1CPAN\s0's request tracker http://rt.cpan.org/NoAuth/Bugs.html?Dist=B-Keywords <http://rt.cpan.org/NoAuth/Bugs.html?Dist=B-Keywords>
AnnoCPAN: Annotated \s-1CPAN\s0 documentation http://annocpan.org/dist/B-Keywords <http://annocpan.org/dist/B-Keywords>
\s-1CPAN\s0 Ratings http://cpanratings.perl.org/d/B-Keywords <http://cpanratings.perl.org/d/B-Keywords>
Search \s-1CPAN\s0 http://search.cpan.org/dist/B-Keywords <http://search.cpan.org/dist/B-Keywords>
Michael G Schwern, Reini Urban, Florian Ragwitz and Zsba\*'n Ambrus for patches and releases.
Copyright 2009 Joshua ben Jore, All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of either:
a) the \s-1GNU\s0 General Public License as published by the Free Software
Foundation; version 2, or
b) the \*(L"Artistic License\*(R" which comes with Perl.
This source is in Github: git://github.com/rurban/b-keywords.git <git://github.com/rurban/b-keywords.git>
Joshua ben Jore <[email protected]>
Reini Urban <[email protected]>