Brief Summary of Perl
Perl acts like an interpreter. You type the source into a file and then tell the Perl program (usually called perl or perl.exe) to execute it. Actually, Perl compiles the program before it runs it, but the user doesn't really notice this. The only difference from a true interpreter is that syntax errors anywhere in the program cause an error before execution starts.
Perl generally treats all white space, including new lines, equally. Blocks of code are enclosed between { and }, and statements usually end with a semicolon (;).
Comments are marked with a # symbol—anything following that symbol on a line is ignored.
Data Types and Variables
Variables do not need to be declared; they can simply be used. Variables that have not ...
Get Find the Bug A Book of Incorrect Programs 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.