Misc
Case sensitivity
- Perl is case sensitive
Memory management
- Perl offers limited garbage collection (reference counting, rather than mark and sweep)
- Won't catch circular refefernces or self-references
- Mark and sweep is applied when the Perl interpreter shuts down
Misc
- Perl is short for "Practical Extraction and Report Language"
- Licensed under the GPL and Artistic
License (in effect, FSF-approved and GPL-compatible)
each
while(($key, $val) = each %ENV) { # For each environment variable
print "$key = $val<BR>\n"; # Print the key-value pair
}
eval$@- modules
- map operator
use integer;use sigtrap qw(SEGV BUS);use strict qw(subs vars refs);# End of script
- Alias
- TTY
- Historical name, "tty" stands for "teletypewriter"
- Refers to a command-line terminal (CLI, "command line interface")
- $!
<>: Null filehandle
Resources URL:
notes/perl/resources
Sources URL:
notes/perl/sources