Skip to Content
Minimal Perl
book

Minimal Perl

by Tim Maher
October 2006
Beginner
504 pages
12h 58m
English
Manning Publications
Content preview from Minimal Perl

Appendix A. Perl special variables cheatsheet

$_

  • The most recently read input record.[1]

  • Used automatically by print and many other built-in functions.

$"

  • The string inserted between the elements of a hash or array whose @-name appears within double quotes (e.g., “@ARGV”).

  • Set to a space by default.

$,

  • The string inserted between the elements of a hash or array whose unquoted %-name or @-name appears in print’s argument list (e.g., print @ARGV).

  • The string that replaces (unquoted) commas that appear in print’s argument list (e.g., print 'NAME:', 'rygel').

  • Empty by default.

$0

  • The name by which the script was invoked (e.g., "pgrep"); for a Perl command, shows "-e".

$$

  • The process-ID number of the Shell or Perl program.

$.

  • The ordinal number of the most recently ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning Perl

Beginning Perl

Curtis Ovid Poe
Think Perl 6

Think Perl 6

Laurent Rosenfeld, Allen B. Downey
Perl by Example

Perl by Example

Ellie Quigley
Learning Perl 6

Learning Perl 6

brian d foy

Publisher Resources

ISBN: 9781932394504Publisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link