/usr/share/perl5/B/Keywords.pm is in libb-keywords-perl 1.18-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 | ## 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.18';
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 - v5.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.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
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
our
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<B::Keywords> 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<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.
=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<regen/keywords.pl> from the perl source, L<perlvar>, L<perlfunc>,
L<perldelta>.
=head1 BUGS
Please report any bugs or feature requests to C<bug-B-Keywords at
rt.cpan.org>, or through the web interface at
L<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.
=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<http://rt.cpan.org/NoAuth/Bugs.html?Dist=B-Keywords>
=item * AnnoCPAN: Annotated CPAN documentation
L<http://annocpan.org/dist/B-Keywords>
=item * CPAN Ratings
L<http://cpanratings.perl.org/d/B-Keywords>
=item * Search CPAN
L<http://search.cpan.org/dist/B-Keywords>
=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, 2018 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<git://github.com/rurban/b-keywords.git>
=head1 AUTHOR
Joshua ben Jore <jjore@cpan.org>
=head1 MAINTAINER
Reini Urban <rurban@cpan.org>
|