B-Keywords-1.21/0000755000175000017500000000000013576204623012777 5ustar rurbanrurbanB-Keywords-1.21/META.yml0000664000175000017500000000122713576204621014252 0ustar rurbanrurban--- abstract: 'Lists of reserved barewords and symbol names' author: - 'Reini Urban ' build_requires: ExtUtils::MakeMaker: '0' configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 1 generated_by: 'ExtUtils::MakeMaker version 7.38, CPAN::Meta::Converter version 2.150010' license: unknown meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: B-Keywords no_index: directory: - t - inc requires: B: '0' resources: license: http://dev.perl.org/licenses/ repository: http://github.com/rurban/b-keywords version: '1.21' x_serialization_backend: 'CPAN::Meta::YAML version 0.018' B-Keywords-1.21/META.json0000664000175000017500000000213513576204621014421 0ustar rurbanrurban{ "abstract" : "Lists of reserved barewords and symbol names", "author" : [ "Reini Urban " ], "dynamic_config" : 1, "generated_by" : "ExtUtils::MakeMaker version 7.38, CPAN::Meta::Converter version 2.150010", "license" : [ "unknown" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : 2 }, "name" : "B-Keywords", "no_index" : { "directory" : [ "t", "inc" ] }, "prereqs" : { "build" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "runtime" : { "requires" : { "B" : "0" } } }, "release_status" : "stable", "resources" : { "license" : [ "http://dev.perl.org/licenses/" ], "repository" : { "url" : "http://github.com/rurban/b-keywords" } }, "version" : "1.21", "x_serialization_backend" : "JSON::PP version 2.97001" } B-Keywords-1.21/README0000644000175000017500000000700613576202323013655 0ustar rurbanrurbanNAME B::Keywords - Lists of reserved barewords and symbol names SYNOPSIS 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, @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. 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. @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. SEE ALSO regen/keywords.pl from the perl source, perlvar, perlfunc, perldelta. BUGS Please report any bugs or feature requests to "bug-B-Keywords at rt.cpan.org", or through the web interface at . 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: * RT: CPAN's request tracker * AnnoCPAN: Annotated CPAN documentation * CPAN Ratings * Search CPAN ACKNOWLEDGEMENTS Michael G Schwern, Reini Urban, Florian Ragwitz and Zsbán Ambrus for patches and releases. COPYRIGHT AND LICENSE Copyright 2009 Joshua ben Jore, All rights reserved. Copyright 2013, 2015, 2017-2019 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: AUTHOR Joshua ben Jore MAINTAINER Reini Urban B-Keywords-1.21/Changes0000644000175000017500000000751313576204461014300 0ustar rurbanrurbanRevision history for Perl extension B::Keywords. 0.01 Mar 21, 2003 - original version; created by h2xs 1.5 with options -X -P -n B::Keywords 0.02 Mar 24, 2003 - Added Makefile.PL wrapper for Build.PL - Added $a and $b to @Symbols 0.03 Jul 4, 2003 - Fixed formatting - (probably made some other changes I now forget) 0.04 Jul 8, 2003 - Added tests per Josts K's request - Added 'use 5.006' because this isn't coded for pre 5.6 0.05 Jul 8 2003 - Added the test and license file to MANIFEST so it actually gets packaged and doesn't just stay in my CVS directory. Boy am I dork. 0.06 Aug 7, 2003 - 5.005_03 compatible. - Added SIGNATURE 1.00 Dec 29, 2005 - Added keywords for 5.10 - More tests 1.01 Jan 22, 2006 - Added some variables from 5.10 - Stuff is exportable now 1.02 Jul 7, 2006 - Added test to watch CORE/keywords.h for new stuff - Added -x and state to @Functions. 1.03 Aug 17, 2006 - Separated non-functions in @Functions to @Barewords - Used qw() lists 1.04 Aug 17, 2006 - Fixed syntax bugx in 1.03 1.05 Nov 24, 2006 - Added UNITCHECK 1.07 Feb 14, 2007 - Added EQ GE GT NE LE LT for 5.6. 1.08 - Removed useless author tests 1.09 - 856e84486be2089095a27b18f1344eca29a9ff50 Update administrivia in docs - b41ee8b135c9d2e0e7eda38dc17f3327f60f1cda $\ was missing from @Scalars. - a64e7f604687eda699fe778bcb070f3e715741b0 @Functions missing from @Symbols - bb14cdd3b3e5223fbb904cfbbe87fbcb5f6d8db2 Fix use B::Keywords qw(:all); 1.10 - Fix typo in SYNOPSIS 1.11 rafl - Add new keywords for 5.16, __SUB__ and evalbytes. 1.12 Fri Apr 5 2013 rurban - Add new keyword fc (Unicode casefolding) for 5.16 added with commit 838f2281 - added diag before each big t/11keywords.t loop 1.13 Fri Apr 5 2013 rurban - removed diag before each big t/11keywords.t loop - added suggested keywords from RT #62382: *_ and DATA to @FileHandles (the deprecated lowercase: stdin, stdout, stderr not), import unimport to @Functions, BINMODE CLEAR CLEARERR CLONE CLONE_SKIP CLOSE DELETE EOF ERROR EXISTS EXTEND FDOPEN FETCH FETCHSIZE FILENO FILL FIRSTKEY FLUSH GETC NEXTKEY OPEN POP POPPED PRINT PRINTF PUSH PUSHED READ READLINE SCALAR SEEK SETLINEBUF SHIFT SPLICE STORE STORESIZE SYSOPEN TELL TIEARRAY TIEHANDLE TIEHASH TIESCALAR UNREAD UNSHIFT UNTIE UTF8 WRITE to @TieIOMethods, can isa DOES VERSION to @UNIVERSALMethods, @EXPORT @EXPORT_OK @EXPORT_FAIL @EXPORT_TAGS _push_tags _rebuild_cache as_heavy export export_fail export_fail_in export_ok_tags export_tags export_to_level heavy_export heavy_export_ok_tags heavy_export_tags heavy_export_to_level heavy_require_version require_version to @ExporterSymbols (Zsbán Ambrus) - Moved exp from @Barewords to @Functions - Added $^CHILD_ERROR_NATIVE $^GLOBAL_PHASE $^LAST_FH $^MATCH $^PREMATCH $^POSTMATCH $^UTF8CACHE $^WIN32_SLOPPY_STAT to @Scalars - Added English names for %!, @F (perlrun) and @ARG for @_ (Zsbán Ambrus) - Added %+ %- (Zsbán Ambrus) and $LAST_SUBMATCH_RESULT 1.14 Sat Feb 21 2015 rurban - removed err from Barewords, RT #102259 (Alex Efros a.k.a. Powerman) 1.15 Wed Nov 11 2015 rurban - Fixed $OUTPUT_AUTOFLUSH, RT #108572 (Defragmented Reality) - Made $* $MULTILINE_MATCHING version specific, deprecated with 5.8.1, removed with 5.10 1.16 Thu Dec 28 2017 rurban - Added 5.27.7 changes, RT #123948 - Added cperl class keywords - Added keywords per version back to 5.004 1.17 Mon Jan 29 17:57:05 CET 2018 rurban - Added 5.27.8 changes, whereis/whereso is gone for good. There's still a chance for perl6 compat 1.18 Mon Jan 29 18:09:23 CET 2018 rurban - Oops, forgot break 1.19 Thu Aug 23 11:16:09 CEST 2018 - our was added with 5.005_61 1.20 2019-02-15 11:03:00 rurban - extern was added with 5.29.0c 1.21 2019-12-17 17:38:00 rurban - isa was added with 5.31.7 - improved t/z_kwalitee.t B-Keywords-1.21/t/0000755000175000017500000000000013576204621013240 5ustar rurbanrurbanB-Keywords-1.21/t/z_perl_minimum_version.t0000644000175000017500000000126512127620363020220 0ustar rurbanrurban# -*- perl -*- # Test that our declared minimum Perl version matches our syntax use strict; BEGIN { $| = 1; $^W = 1; } my @MODULES = ( 'Perl::MinimumVersion 1.20', 'Test::MinimumVersion 0.008', ); # Don't run tests during end-user installs use Test::More; unless (-d '.git' || $ENV{IS_MAINTAINER}) { plan( skip_all => "Author tests not required for installation" ); } # Load the testing modules foreach my $MODULE ( @MODULES ) { eval "use $MODULE"; if ( $@ ) { plan( skip_all => "$MODULE not available for testing" ); die "Failed to load required release-testing module $MODULE" if -d '.git' || $ENV{IS_MAINTAINER}; } } all_minimum_version_ok("5.006"); 1; B-Keywords-1.21/t/z_meta.t0000644000175000017500000000127612127620363014706 0ustar rurbanrurban# -*- perl -*- # Test that our META.yml file matches the current specification. use strict; BEGIN { $| = 1; $^W = 1; } my $MODULE = 'Test::CPAN::Meta 0.12'; # Don't run tests for installs use Test::More; use Config; plan skip_all => 'This test is only run for the module author' unless -d '.git' || $ENV{IS_MAINTAINER}; plan skip_all => 'Test::CPAN::Meta fails with clang -faddress-sanitizer' if $Config{ccflags} =~ /-faddress-sanitizer/; # Load the testing module eval "use $MODULE;"; if ( $@ ) { plan( skip_all => "$MODULE not available for testing" ); die "Failed to load required release-testing module $MODULE 0.12" if -d '.git' || $ENV{IS_MAINTAINER}; } meta_yaml_ok(); B-Keywords-1.21/t/z_kwalitee.t0000644000175000017500000000146713576204136015574 0ustar rurbanrurban# -*- perl -*- use strict; use warnings; use Test::More; use Config; plan skip_all => 'requires Perl 5.8.2' if $] < 5.008002; plan skip_all => 'This test is only run for the module author' unless -d '.git' || $ENV{IS_MAINTAINER}; # Missing XS dependencies are usually not caught by EUMM # And they are usually only XS-loaded by the importer, not require. for (qw( Class::XSAccessor Text::CSV_XS List::MoreUtils )) { eval "use $_;"; plan skip_all => "$_ required for Test::Kwalitee" if $@; } eval "require Test::Kwalitee;"; plan skip_all => "Test::Kwalitee required" if $@; plan skip_all => 'Test::Kwalitee fails with clang -faddress-sanitizer' if $Config{ccflags} =~ /-faddress-sanitizer/; use File::Copy 'cp'; cp('MYMETA.yml','META.yml') if -e 'MYMETA.yml' and !-e 'META.yml'; Test::Kwalitee->import; B-Keywords-1.21/t/z_pod-coverage.t0000644000175000017500000000062512127620363016330 0ustar rurbanrurban# -*- perl -*- use strict; use warnings; use Test::More; plan skip_all => 'done_testing requires Test::More 0.88' if Test::More->VERSION < 0.88; plan skip_all => 'This test is only run for the module author' unless -d '.git' || $ENV{IS_MAINTAINER}; eval "use Test::Pod::Coverage 1.04"; plan skip_all => "Test::Pod::Coverage 1.04 required for testing POD coverage" if $@; all_pod_coverage_ok(); B-Keywords-1.21/t/11keywords.t0000644000175000017500000000223312127620363015432 0ustar rurbanrurban#!/usr/bin/perl -w use strict; use Test::More 'no_plan'; use Config; use File::Spec; use lib qw( ../lib lib ); use B::Keywords ':all'; # Translate control characters into ^A format # Leave others alone. my @control_map = (undef, "A".."Z"); sub _map_control_char { my $char = shift; my $ord = ord $char; return "^".$control_map[$ord] if $ord <= 26; return $char; } # Test everything in keywords.h is covered. { my $keywords = File::Spec->catfile( $Config{archlibexp}, 'CORE', 'keywords.h' ); open FH, "< $keywords\0" or die "Can't open $keywords: $!"; local $/; chomp( my @keywords = =~ /^\#define \s+ KEY_(\S+) /xmsg ); close FH; my %covered = map { $_ => 1 } @Symbols, @Barewords; for my $keyword (@keywords) { ok $covered{$keyword}, "keyword: $keyword"; } } # Test all the single character globals in main { my @globals = map { _map_control_char($_) } grep { length $_ == 1 and /\W/ } keys %main::; my %symbols = map { s/^.//; $_ => 1 } (@Scalars, @Arrays, @Hashes); for my $global (@globals) { ok $symbols{$global}, "global: $global"; } } B-Keywords-1.21/t/10basic.t0000644000175000017500000000114312127610323014635 0ustar rurbanrurban# Before `make install' is performed this script should be runnable with # `make test'. After `make install' it should work as `perl 1.t' ######################### # change 'tests => 1' to 'tests => last_test_to_print'; use Test; BEGIN { plan( tests => 7 ); $^W = 1; } use lib qw( ../lib lib ); use B::Keywords; ######################### ok( scalar @B::Keywords::Scalars ); ok( scalar @B::Keywords::Arrays ); ok( scalar @B::Keywords::Hashes ); ok( scalar @B::Keywords::Filehandles ); ok( scalar @B::Keywords::Symbols ); ok( scalar @B::Keywords::Functions ); ok( scalar @B::Keywords::Barewords ); B-Keywords-1.21/t/export.t0000644000175000017500000000035112127610323014734 0ustar rurbanrurban#!/usr/bin/perl -w use strict; use Test::More tests => 7; use B::Keywords ":all"; for my $name (qw(Scalars Arrays Hashes Filehandles Symbols Functions Barewords)) { no strict 'refs'; ok @{$name}, ":all exports \@$name"; } B-Keywords-1.21/t/z_pod.t0000644000175000017500000000022012127620363014526 0ustar rurbanrurban# -*- perl -*- use Test::More; eval "use Test::Pod 1.00"; plan skip_all => "Test::Pod 1.00 required for testing POD" if $@; all_pod_files_ok(); B-Keywords-1.21/Makefile.PL0000644000175000017500000000146613576204230014752 0ustar rurbanrurban#!perl -w use ExtUtils::MakeMaker; WriteMakefile( 'NAME' => 'B::Keywords', 'VERSION_FROM' => 'lib/B/Keywords.pm', 'ABSTRACT_FROM' => 'lib/B/Keywords.pm', 'AUTHOR' => 'Reini Urban ', 'SIGN' => 1, 'PREREQ_PM' => { 'B' => 0, }, depend => { 'README' => 'lib/B/Keywords.pm' }, ($ExtUtils::MakeMaker::VERSION gt '6.46' ? ('META_MERGE' => { resources => { repository => 'http://github.com/rurban/b-keywords', license => 'http://dev.perl.org/licenses/', }, } ) : ()), ); package MY; use Config; sub depend { " README : \$(VERSION_FROM) pod2text \$(VERSION_FROM) > README release : dist git tag \$(VERSION) cpan-upload \$(DISTVNAME).tar\$(SUFFIX) git push git push --tags " } B-Keywords-1.21/MANIFEST0000644000175000017500000000070613576204621014131 0ustar rurbanrurbanChanges lib/B/Keywords.pm LICENSE Makefile.PL MANIFEST This list of files README t/10basic.t t/11keywords.t t/export.t t/z_kwalitee.t t/z_meta.t t/z_perl_minimum_version.t t/z_pod-coverage.t t/z_pod.t META.yml Module YAML meta-data (added by MakeMaker) META.json Module JSON meta-data (added by MakeMaker) SIGNATURE Public-key signature (added by MakeMaker) B-Keywords-1.21/LICENSE0000644000175000017500000000045412127610323013774 0ustar rurbanrurbanCopyright 2003, Joshua b. Jore. 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.B-Keywords-1.21/SIGNATURE0000664000175000017500000000451113576204623014266 0ustar rurbanrurbanThis file contains message digests of all files listed in MANIFEST, signed via the Module::Signature module, version 0.83. To verify the content in this distribution, first make sure you have Module::Signature installed, then type: % cpansign -v It will check each file's integrity, as well as the signature's validity. If "==> Signature verified OK! <==" is not displayed, the distribution may already have been compromised, and you should not run its Makefile.PL or Build.PL. -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 SHA256 917b5918d97cef573ae74ec93e25c2270f00a90d3ca6a6624e1475abcea6b462 Changes SHA256 6724a85e9820d3b08909b518d4d3d3621cf2fb7f2876360e5b2874efbf8c2ee8 LICENSE SHA256 7ebf58443f98897bc4d14d25de111e89838c847102bfafd98cad2ab6de7e7177 MANIFEST SHA256 b4fe80f031554a1d83f2ef0aa59749849149acd40a9f7692d9aa17f82e71f266 META.json SHA256 a2ef71fba5cab639adc217001833bfbb20984cb375927da2c10ae93088f36a6b META.yml SHA256 b51920d197a1eee6f282d3a5487e7c1501c710000bcf0d8f289fb31a42461115 Makefile.PL SHA256 0a73e39f5d75bdaa6b6e113318168e2e880b6a69405063df631a0aa2b0f19fcd README SHA256 5a06e112f015c3f161df41cca0ce3b3d8a0d4778a43902e114b2e7cf7dea93bc lib/B/Keywords.pm SHA256 e03c8fcbca5ea500346882132d9a4ae57fc8fca37bdf2a8e0576f25408760885 t/10basic.t SHA256 e769e2d323d01b7cb67224442cacc7b0bc60bf04492e688af87708d9930a24fa t/11keywords.t SHA256 eccb70c617b51d41f8fe54bf1c52e6767f849833cf3c244fb432b3ebfdc2d4bf t/export.t SHA256 6aa4dd8133ae0d11b0220796801c955746a7d891aed8bfc7056b7e0e7433929d t/z_kwalitee.t SHA256 fb00e0e0d57de606699706d2a2e486df05d840793d3bcf6e4bb13f1604f19487 t/z_meta.t SHA256 956f858cc6c609d57ad5f92b6432a40c9c3d90576c397f90afa4489d12030850 t/z_perl_minimum_version.t SHA256 0ba22336dc34b370d0fa7a0d87ed45080d76e87d6a409881f9402277d66a13e4 t/z_pod-coverage.t SHA256 298e9a5d4190701d4438f3f68c1e44139cfa36982503ccc44572d04cfe3c317a t/z_pod.t -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEKJWogdNCcPq/6PdHtPYzOeZdZBQFAl35CZIACgkQtPYzOeZd ZBT4Vgf9EZEUpuUbW95SEB9SrjF0dOIyKBqZc0pjEGxWKWOn5EX3EU9yaflMVh2/ ll9GCImHMJdZdoE3HSX/eLXbHdoTpPv6SpJdrTSp3iZ9O+qTFb0ZX7qAeJAnJmAl 4Rk36e1gjW/pYMjn/fAXp6VbmUlqwtVHO7jbItike+kQwUGDCDnK178ngW/tCLwv z+cd5595halY0tvKfD5jSHZSN2Qs3jykHpRtsZboC3c1N1O+gd45M/GoI5aGGNeP P7tBGlzjphG+UG+f2bCdMtqXnCTTsfWKJFpJ4Lg1C2f/Awlq6r6ogxOC0Hl46OBG Mes4XsdsD4hI0SWUPwXvQ9+JAXuK3w== =oSA2 -----END PGP SIGNATURE----- B-Keywords-1.21/lib/0000755000175000017500000000000013576204621013543 5ustar rurbanrurbanB-Keywords-1.21/lib/B/0000755000175000017500000000000013576204621013724 5ustar rurbanrurbanB-Keywords-1.21/lib/B/Keywords.pm0000644000175000017500000002663113576202055016100 0ustar rurbanrurban## no critic (PodSections,UseWarnings,Interpolation,EndWithOne,NoisyQuotes) package B::Keywords; use strict; require Exporter; *import = *import = \&Exporter::import; use vars qw( @EXPORT_OK %EXPORT_TAGS ); @EXPORT_OK = qw( @Scalars @Arrays @Hashes @Filehandles @Symbols @Functions @Barewords @TieIOMethods @UNIVERSALMethods @ExporterSymbols ); %EXPORT_TAGS = ( 'all' => \@EXPORT_OK ); use vars '$VERSION'; $VERSION = '1.21'; my $CPERL = $^V =~ /c$/ ? 1 : 0; use vars '@Scalars'; @Scalars = ( qw( $a $b $_ $ARG $& $MATCH $` $PREMATCH $' $POSTMATCH $+ $LAST_PAREN_MATCH ), ($] < 5.008001 ? qw( $* $MULTILINE_MATCHING) : ()), qw( $. $INPUT_LINE_NUMBER $NR $/ $INPUT_RECORD_SEPARATOR $RS $| $OUTPUT_AUTOFLUSH ), '$,', qw( $OUTPUT_FIELD_SEPARATOR $OFS $\ $OUTPUT_RECORD_SEPARATOR $ORS $" $LIST_SEPARATOR $; $SUBSCRIPT_SEPARATOR $SUBSEP ), '$#', qw( $OFMT $% $FORMAT_PAGE_NUMBER $= $FORMAT_LINES_PER_PAGE $- $FORMAT_LINES_LEFT $~ $FORMAT_NAME $^ $FORMAT_TOP_NAME $: $FORMAT_LINE_BREAK_CHARACTERS $? $CHILD_ERROR $^CHILD_ERROR_NATIVE $! $ERRNO $OS_ERROR $@ $EVAL_ERROR $$ $PROCESS_ID $PID $< $REAL_USER_ID $UID $> $EFFECTIVE_USER_ID $EUID ), '$(', qw( $REAL_GROUP_ID $GID ), '$)', qw( $EFFECTIVE_GROUP_ID $EGID $0 $PROGRAM_NAME $[ $] $^A $ACCUMULATOR $^C $COMPILING $^CHILD_ERROR_NATIVE $^D $DEBUGGING $^E $EXTENDED_OS_ERROR $^ENCODING $^F $SYSTEM_FD_MAX $^GLOBAL_PHASE $^H $^I $INPLACE_EDIT $^L $FORMAT_FORMFEED $^LAST_FH $^M $^MATCH $^N $LAST_SUBMATCH_RESULT $^O $OSNAME $^OPEN $^P $PERLDB $^PREMATCH $^POSTMATCH $^R $LAST_REGEXP_CODE_RESULT $^RE_DEBUG_FLAGS $^RE_TRIE_MAXBUF $^S $EXCEPTIONS_BEING_CAUGHT $^T $BASETIME $^TAINT $^UNICODE $^UTF8CACHE $^UTF8LOCALE $^V $PERL_VERSION $^W $WARNING $^WARNING_BITS $^WIDE_SYSTEM_CALLS $^WIN32_SLOPPY_STAT $^X $EXECUTABLE_NAME $ARGV ), ); use vars '@Arrays'; @Arrays = qw( @+ $LAST_MATCH_END @- @LAST_MATCH_START @ARGV @F @INC @_ @ARG ); use vars '@Hashes'; @Hashes = qw( %OVERLOAD %+ %LAST_MATCH_END %- %LAST_MATCH_START %! %OS_ERROR %ERRNO %^H %INC %ENV %SIG ); use vars '@Filehandles'; @Filehandles = qw( *ARGV ARGV *_ _ ARGVOUT DATA STDIN STDOUT STDERR ); use vars '@Functions'; @Functions = ( ($] >= 5.015006 ? qw( __SUB__ ) : ()), qw( AUTOLOAD BEGIN DESTROY END ), # STOP was between 5.5.64 - 5.6.0 ($] >= 5.005064 && $] < 5.006 ? qw(STOP) : qw(CHECK)), # INIT was called RESTART before 5.004_50 ($] >= 5.006 ? qw(INIT) : qw(RESTART)), ($] < 5.007003 ? qw( EQ GE GT LE LT NE ) : ()), qw( UNITCHECK abs accept alarm atan2 bind binmode bless ), ($] >= 5.009003 && ($] < 5.027007 || $] >= 5.027008 || $CPERL) ? qw( break ) : ()), qw( caller chdir chmod chomp chop chown chr chroot close closedir connect cos crypt dbmclose dbmopen ), ($] >= 5.009003 && ($] < 5.027007 || $CPERL) ? qw( default ) : ()), qw( defined delete die dump each endgrent endhostent endnetent endprotoent endpwent endservent eof eval ), ($] >= 5.015005 ? qw( evalbytes ) : ()), qw( exec exists exit exp ), ($] >= 5.029 && $CPERL ? qw( extern ) : ()), ($] >= 5.015008 ? qw( fc ) : ()), qw( fcntl fileno flock fork format formline getc getgrent getgrgid getgrnam gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr getnetbyname getnetent getpeername getpgrp getppid getpriority getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid getservbyname getservbyport getservent getsockname getsockopt ), ($] >= 5.009003 ? qw( given ) : ()), qw( glob gmtime goto grep hex index int import ioctl ), ($] >= 5.031007 ? qw( isa ) : ()), qw( join keys kill last lc lcfirst length link listen local localtime ), ($] >= 5.004 ? qw( lock ) : ()), qw( log lstat map mkdir msgctl msgget msgrcv msgsnd my next not oct open opendir ord ), ($] >= 5.005061 ? qw( our ) : ()), qw( pack pipe pop pos print printf prototype push quotemeta rand read readdir readline readlink readpipe recv redo ref rename require reset return reverse rewinddir rindex rmdir ), ($] >= 5.009003 ? qw( say ) : ()), qw( scalar seek seekdir select semctl semget semop send setgrent sethostent setnetent setpgrp setpriority setprotoent setpwent setservent setsockopt shift shmctl shmget shmread shmwrite shutdown sin sleep socket socketpair sort splice split sprintf sqrt srand stat state study substr symlink syscall sysopen sysread sysseek system syswrite tell telldir tie tied time times truncate uc ucfirst umask undef unlink unimport unpack unshift untie use utime values vec wait waitpid wantarray warn ), ($] >= 5.009003 && ($] < 5.027007 || $] >= 5.027008 || $CPERL) ? qw( when ) : ($] >= 5.009003 && !$CPERL) ? qw( whereis whereso ) : ()), qw( write -r -w -x -o -R -W -X -O -e -z -s -f -d -l -p -S -b -c -t -u -g -k -T -B -M -A -C )); use vars '@Barewords'; @Barewords = ( qw( __FILE__ __LINE__ __PACKAGE__ __DATA__ __END__ CORE EQ GE GT LE LT NE NULL and ), ($CPERL && $] >= 5.027001 ? qw( class method role multi has ) : ()), qw( cmp continue default do else elsif eq ), ($] >= 5.008001 && $] < 5.010 ? qw( err ) : ()), qw( for foreach ge given gt if le lock lt m ne no or package q qq ), ($] >= 5.004072 ? qw( qr ) : ()), ($] == 5.007003 ? qw( qu ) : ()), qw( qw qx s sub tr unless until when while x xor y )); use vars '@TieIOMethods'; @TieIOMethods = qw( BINMODE CLEAR CLEARERR CLONE CLONE_SKIP CLOSE DELETE EOF ERROR EXISTS EXTEND FDOPEN FETCH FETCHSIZE FILENO FILL FIRSTKEY FLUSH GETC NEXTKEY OPEN POP POPPED PRINT PRINTF PUSH PUSHED READ READLINE SCALAR SEEK SETLINEBUF SHIFT SPLICE STORE STORESIZE SYSOPEN TELL TIEARRAY TIEHANDLE TIEHASH TIESCALAR UNREAD UNSHIFT UNTIE UTF8 WRITE ); use vars '@UNIVERSALMethods'; @UNIVERSALMethods = qw( can isa DOES VERSION ); use vars '@ExporterSymbols'; @ExporterSymbols = qw( @EXPORT @EXPORT_OK @EXPORT_FAIL @EXPORT_TAGS _push_tags _rebuild_cache as_heavy export export_fail export_fail_in export_ok_tags export_tags export_to_level heavy_export heavy_export_ok_tags heavy_export_tags heavy_export_to_level heavy_require_version require_version ); use vars '@Symbols'; @Symbols = ( @Scalars, @Arrays, @Hashes, @Filehandles, @Functions ); # This quote is blatantly copied from ErrantStory.com, Michael Poe's # comic. BEGIN { $^W = 0 } "You know, when you stop and think about it, Cthulhu is a bit a Mary Sue isn't he?" __END__ =encoding UTF-8 =head1 NAME B::Keywords - Lists of reserved barewords and symbol names =head1 SYNOPSIS use B::Keywords qw( @Symbols @Barewords ); print join "\n", @Symbols, @Barewords; =head1 DESCRIPTION C supplies several arrays of exportable keywords: C<@Scalars>, C<@Arrays>, C<@Hashes>, C<@Filehandles>, C<@Symbols>, C<@Functions>, C<@Barewords>, C<@TieIOMethods>, C<@UNIVERSALMethods> and C<@ExporterSymbols>. The C<@Symbols> array includes the contents of each of C<@Scalars>, C<@Arrays>, C<@Hashes>, C<@Functions> and C<@Filehandles>. Similarly, C<@Barewords> adds a few non-function keywords and operators to the C<@Functions> array. All additions and modifications are welcome. The perl parser uses a static list of keywords from F 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. =head1 DATA =over =item C<@Scalars> =item C<@Arrays> =item C<@Hashes> =item C<@Filehandles> =item C<@Functions> The above are lists of variables, special file handles, and built in functions. =item C<@Symbols> This is just the combination of all of the above: variables, file handles, and functions. =item C<@Barewords> This is a list of other special keywords in perl including operators and all the control structures. =item C<@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. =item C<@UNIVERSALMethods> Methods defined by the core package UNIVERSAL. =item C<@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. =back =head1 EXPORT Anything can be exported if you desire. Use the :all tag to get everything. =head1 SEE ALSO F from the perl source, L, L, L. =head1 BUGS Please report any bugs or feature requests to C, or through the web interface at L. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. =head1 SUPPORT You can find documentation for this module with the perldoc command. perldoc B::Keywords You can also look for information at: =over =item * RT: CPAN's request tracker L =item * AnnoCPAN: Annotated CPAN documentation L =item * CPAN Ratings L =item * Search CPAN L =back =head1 ACKNOWLEDGEMENTS Michael G Schwern, Reini Urban, Florian Ragwitz and Zsbán Ambrus for patches and releases. =head1 COPYRIGHT AND LICENSE Copyright 2009 Joshua ben Jore, All rights reserved. Copyright 2013, 2015, 2017-2019 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. =head1 SOURCE AVAILABILITY This source is in Github: L =head1 AUTHOR Joshua ben Jore =head1 MAINTAINER Reini Urban