Special Arrays
The alternative names are provided by the standard module English.
@_
Alternative:
@ARG.
Parameter array for subroutines. Also used by split if not in list context.
@-
Alternative:
@LAST_MATCH_START.
After a successful pattern match, contains the offsets of the beginnings of the successful submatches.
$-[0]
is the offset of the entire match.@+
Alternative:
@LAST_MATCH_END.
Like
@-
, but the offsets point to the ends of the submatches.$+[0]
is the offset of the end of the entire match.@ARGV
Contains the command-line arguments for the script (not including the command name, which is in
$0
).@EXPORT
Names the methods and other symbols a package exports by default. Used by the
Exporter
module.@EXPORT_OK
Names the methods and other symbols a package can export upon request. Used by the
Exporter
module.@F
When command-line option
-a
is used, contains the split of the input lines.@INC
Contains the list of places to look for Perl scripts to be evaluated by the do filename, use and require commands.
Do not modify
@INC
directly, but use thelib
pragma or-I
command-line option instead.@ISA
List of base classes of a package.
perlvar.
Get Perl Pocket Reference, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.