B::Keywords(3)

🌸 NAME 🌸

Ok bestie, you're looking at the B::Keywords(3) manual page β€” yes, a User Contributed Perl Documentation moment β€” and this module is literally B::Keywords: lists of reserved barewords and symbol names. Iconic. No cap. πŸ’…

✨ SYNOPSIS ✨

Here's the vibe check for loading it:

  use B::Keywords qw( @Symbols @Barewords );
  print join "\n", @Symbols,
                   @Barewords;

πŸ¦‹ DESCRIPTION πŸ¦‹

B::Keywords supplies several arrays of exportable keywords: @Scalars, @Arrays, @Hashes, @Filehandles, @Symbols, @Functions, @Barewords, @BarewordsExtra, @TieIOMethods, @UNIVERSALMethods and @ExporterSymbols. That's the whole squad. 🫢

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.

@BarewordsExtra adds a few barewords which are not in keywords.h.

All additions and modifications are welcome. (Yes, bestie, your patch is invited to the group chat. πŸ’Œ)

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.

πŸ’Ž DATA πŸ’Ž

🌟 @Scalars, @Arrays, @Hashes, @Filehandles, @Functions

The above are lists of variables, special file handles, and built in functions.

@Symbols

This is just the combination of all of the above: variables, file handles, and functions.

@Barewords

This is a list of other special keywords in perl including operators and all the control structures.

@BarewordsExtra

This is a list of barewords which are missing from keywords.h, handled extra in the tokenizer.

@TieIOMethods

Those are special tie or PerlIO methods called by the perl core, namely for tieing or PerlIO::via (or both of those) or threads.

@UNIVERSALMethods

Methods defined by the core package UNIVERSAL.

@ExporterSymbols

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.

πŸ“¦ EXPORT πŸ“¦

Anything can be exported if you desire. Use the :all tag to get everything. Like, the whole buffet. πŸ“

πŸ‘€ SEE ALSO πŸ‘€

regen/keywords.pl from the perl source, perlvar, perlfunc, perldelta. Go read, bestie. πŸ“š

πŸ› BUGS πŸ›

Please report any bugs or feature requests to bug-B-Keywords at rt.cpan.org, or through the web interface at 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.

πŸ›Ÿ SUPPORT πŸ›Ÿ

You can find documentation for this module with the perldoc command.

perldoc B::Keywords

You can also look for information at:

πŸ™Œ ACKNOWLEDGEMENTS πŸ™Œ

Michael G Schwern, Reini Urban, Florian Ragwitz and ZsbΓ‘n Ambrus for patches and releases. Legends, honestly. πŸ‘‘

Copyright 2009 Joshua ben Jore, All rights reserved. Copyright 2013, 2015, 2017-2021 Reini Urban, All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of either:

  • a) the GNU General Public License as published by the Free Software Foundation; version 2, or
  • b) the "Artistic License" which comes with Perl.

🌐 SOURCE AVAILABILITY 🌐

This source is in Github: git://github.com/rurban/b-keywords.git

✍️ AUTHOR ✍️

Joshua ben Jore <jjore@cpan.org>

πŸ› οΈ MAINTAINER πŸ› οΈ

Reini Urban <rurban@cpan.org>


And that's the whole manual, bestie! This page came from perl v5.42.0, dated 2025-06-26, and it was literally B::Keywords(3). Mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from