From the course: Perl 5 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Hello World

Hello World - Perl Tutorial

From the course: Perl 5 Essential Training

Start my 1-month free trial

Hello World

- [Voiceover] Hello World is a very simple, complete program commonly used to demonstrate the syntax of a language or to test a new development environment. This is a working copy of hello.pl from chapter two of the exercise files, and this is a typical Hello World written in Perl. This is not the shortest or the most minimalist version of Hello World. Rather, this version is designed to demonstrate how to construct a simple Perl script. So let's take a look at this Hello World script. So here on the first line, this is commonly called a shebang line. You'll notice that it starts with a pound sign and then an exclamation point, and then it has the path to the Perl interpreter. So this is a common Unix technique for running a script. The pound sign indicates to the script language itself, in this case Perl, that this line is a comment and not to interpret this as code. And then if the pound sign is followed immediately without any spaces or any other characters, followed immediately by…

Contents