Perl Programming Page 11 - Understanding Perl's Special Variables |
And that's about it for this tutorial. Over the preceding few pages, I $_ (the default variable) $/ (the input record separator) $\ (the output record separator) $, (the output field separator) @ARGV (the command-line argument array) @_ (the subroutine argument array) @INC (the include path array) %ENV (the environment variable array) $? and $! (the last error code) $@ (the last error in an eval() block) $<, $>, $) and $( (the real and effective UID/GIDs) $. (the line number of an input file) $ARGV (the name of an input file) $0 (the name of the current script) $$ (the process ID of the current script) $[ (the Perl version number) Of course, these are just some of the more commonly-used creatures you'll Note: Examples are illustrative only, and are not meant for a production
blog comments powered by Disqus |
|
|
|
|
|
|
|