The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

English::Name - ${^ENGLISH_NAME} for magic variables

VERSION

version 0.003

SYNOPSIS

 use English::Name;

 if (${^ERRNO} =~ /denied/) { ... }

DESCRIPTION

This module provides aliases for the built-in variables whose names no one seems to like to read much like the `English` module does and is described in perlvar. However instead of using $LONG_NAME, it uses ${^LONG_NAME}, making it more obvious that these are in fact magical variables. As caret variables are super-global, this module has a global effect.

ALIASES

This module defines the following aliases:

  • ${^ARG} => $_

  • ${^LIST_SEPARATOR} => $\

  • ${^PID} => $$

  • ${^PROCESS_ID} => $$

  • ${^PROGRAM_NAME} => $0

  • ${^REAL_GROUP_ID} => $(

  • ${^GID} => $(

  • ${^EFFECTIVE_GROUP_ID} => $)

  • ${^EGID} => $)

  • ${^REAL_USER_ID} => $<

  • ${^UID} => $<

  • ${^EFFECTIVE_USER_ID} => $>

  • ${^EUID} => $>

  • ${^SUBSCRIPT_SEPARATOR} => $;

  • ${^SUBSEP} => $;

  • ${^OLD_PERL_VERSION} => $]

  • ${^SYSTEM_FD_MAX} => $^F

  • ${^INPLACE_EDIT} => $^I

  • ${^OSNAME} => $^O

  • ${^PERL_VERSION} => $^V

  • ${^EXECUTABLE_NAME} => $^X

  • ${^PERLDB} => $^P

  • ${^LAST_PAREN_MATCH} => $+

  • ${^LAST_SUBMATCH_RESULT} => $^N

  • ${^LAST_MATCH_END} => $+

  • ${^LAST_MATCH_START} => $-

  • ${^LAST_REGEXP_CODE_RESULT} => $^R

  • ${^INPUT_LINE_NUMBER} => $.

  • ${^INPUT_RECORD_SEPARATOR} => $/

  • ${^RS} => $/

  • ${^NR} => $.

  • ${^OUTPUT_FIELD_SEPARATOR} => $,

  • ${^OFS} => $,

  • ${^OUTPUT_RECORD_SEPARATOR} => $\

  • ${^ORS} => $\

  • ${^OUTPUT_AUTOFLUSH} => $|

  • ${^OS_ERROR} => $!

  • ${^ERRNO} => $!

  • ${^EXTENDED_OS_ERROR} => $^E

  • ${^EXCEPTIONS_BEING_CAUGHT} => $^S

  • ${^WARNING} => $^W

  • ${^EVAL_ERROR} => $@

  • ${^CHILD_ERROR} => $?

  • ${^COMPILING} => $^C

  • ${^DEBUGGING} => $^D

AUTHOR

Leon Timmermans <leont@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2022 by Leon Timmermans.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.