English::Name - ${^ENGLISH_NAME} for magic variables
version 0.003
use English::Name; if (${^ERRNO} =~ /denied/) { ... }
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.
$LONG_NAME
${^LONG_NAME}
This module defines the following aliases:
${^ARG} => $_
${^ARG}
$_
${^LIST_SEPARATOR} => $\
${^LIST_SEPARATOR}
$\
${^PID} => $$
${^PID}
$$
${^PROCESS_ID} => $$
${^PROCESS_ID}
${^PROGRAM_NAME} => $0
${^PROGRAM_NAME}
$0
${^REAL_GROUP_ID} => $(
${^REAL_GROUP_ID}
$(
${^GID} => $(
${^GID}
${^EFFECTIVE_GROUP_ID} => $)
${^EFFECTIVE_GROUP_ID}
$)
${^EGID} => $)
${^EGID}
${^REAL_USER_ID} => $<
${^REAL_USER_ID}
$<
${^UID} => $<
${^UID}
${^EFFECTIVE_USER_ID} => $>
${^EFFECTIVE_USER_ID}
$>
${^EUID} => $>
${^EUID}
${^SUBSCRIPT_SEPARATOR} => $;
${^SUBSCRIPT_SEPARATOR}
$;
${^SUBSEP} => $;
${^SUBSEP}
${^OLD_PERL_VERSION} => $]
${^OLD_PERL_VERSION}
$]
${^SYSTEM_FD_MAX} => $^F
${^SYSTEM_FD_MAX}
$^F
${^INPLACE_EDIT} => $^I
${^INPLACE_EDIT}
$^I
${^OSNAME} => $^O
${^OSNAME}
$^O
${^PERL_VERSION} => $^V
${^PERL_VERSION}
$^V
${^EXECUTABLE_NAME} => $^X
${^EXECUTABLE_NAME}
$^X
${^PERLDB} => $^P
${^PERLDB}
$^P
${^LAST_PAREN_MATCH} => $+
${^LAST_PAREN_MATCH}
$+
${^LAST_SUBMATCH_RESULT} => $^N
${^LAST_SUBMATCH_RESULT}
$^N
${^LAST_MATCH_END} => $+
${^LAST_MATCH_END}
${^LAST_MATCH_START} => $-
${^LAST_MATCH_START}
$-
${^LAST_REGEXP_CODE_RESULT} => $^R
${^LAST_REGEXP_CODE_RESULT}
$^R
${^INPUT_LINE_NUMBER} => $.
${^INPUT_LINE_NUMBER}
$.
${^INPUT_RECORD_SEPARATOR} => $/
${^INPUT_RECORD_SEPARATOR}
$/
${^RS} => $/
${^RS}
${^NR} => $.
${^NR}
${^OUTPUT_FIELD_SEPARATOR} => $,
${^OUTPUT_FIELD_SEPARATOR}
$,
${^OFS} => $,
${^OFS}
${^OUTPUT_RECORD_SEPARATOR} => $\
${^OUTPUT_RECORD_SEPARATOR}
${^ORS} => $\
${^ORS}
${^OUTPUT_AUTOFLUSH} => $|
${^OUTPUT_AUTOFLUSH}
$|
${^OS_ERROR} => $!
${^OS_ERROR}
$!
${^ERRNO} => $!
${^ERRNO}
${^EXTENDED_OS_ERROR} => $^E
${^EXTENDED_OS_ERROR}
$^E
${^EXCEPTIONS_BEING_CAUGHT} => $^S
${^EXCEPTIONS_BEING_CAUGHT}
$^S
${^WARNING} => $^W
${^WARNING}
$^W
${^EVAL_ERROR} => $@
${^EVAL_ERROR}
$@
${^CHILD_ERROR} => $?
${^CHILD_ERROR}
$?
${^COMPILING} => $^C
${^COMPILING}
$^C
${^DEBUGGING} => $^D
${^DEBUGGING}
$^D
Leon Timmermans <leont@cpan.org>
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.
To install English::Name, copy and paste the appropriate command in to your terminal.
cpanm
cpanm English::Name
CPAN shell
perl -MCPAN -e shell install English::Name
For more information on module installation, please visit the detailed CPAN module installation guide.