| |
Perl Reference
This is a small Perl quick-reference that will be growing as I learn Perl. When I learn
new things about Perl, I will add them here to serve as a reminder, and also to enforce
the knowledge. This is in NO way to be considered a tutorial. If you are looking for a
Perl tutorial, try this
one. If you're looking for Perl for Windows information, go here.
Click on a topic heading to expand the list.

|
|

|
|

|
Conditionals |
 |
Equality: $a
== $b; Numerically equal; $a != $b; Numerically unequal; $a eq $b; String-equal; $a ne $b
String-unequal; |
 |
Logical: ($a
&& $b); Logical And; ($a || $b); Logical Or; !($a); Logical Not; |
|
|

|
|

|
String Functions |
 |
Split(): @Identifier
= split(/RE/, $Identifier); Or $_ = $Identifier; @Identifier = split(/RE/); |
|
creates an
array from a string, each element separated by character(s) indicated by /RE/ |
 |
Substr(): $Identifier
= substr($s, [-]$nStart, [$nLength]); |
|
|

|