Let’s have a look at some simple Perl commands, and the syntax involved, in order to get an idea of the simplicity of the language.
Assuming we want the following message:
My name is John
to appear on screen, the Perl command would be, simply:
print "My name is John";
That is the basic command which is simple and straightforward, and easy to remember.
There are rules to remember, however, such as not leaving space with quotations as it will be repeated in the function, and ending all commands with the semi colon.
To go too deep into the syntax of Perl would be unnecessary here, but the above example gives an idea of the sheer simplicity of the language. Bear in mind that the commands used in the likes of BASIC ‘if’, ‘Run’, and others are used in Perl, and the attraction of using such a simple and understandable programming language is greater.