Now let's start by the obligatory Hello World Program. NotePad would do just fine. You can replace first by any name of your choice but just remember that the file should have a .pl extension. If the above program does not work that is you get an error, then check your path statement or try to write perl filename.pl instead of just filename.pl Now lets analyse the program,the word print calls the print function which takes the text from within the quotes and displays it on the screen. Almost all lines in Perl end with a semicolon.
Scalars Now let's make the above program a bit more complex by introducing a scalar.
The first line feeds the text with the quotes into the scalar whose name is scalarvar. Now you must be wondering why I have used single quotes in the first line and double in the second. Now the reason behind this is the fact that Perl performs variable interpolation within double quotes this means that it replaces the variable name with the value of the variable. By now the difference between single quotes and double quotes would have become quite clear. It basically grabs input from the user to make a program interactive.