Solution Review: Printing Text

In this lesson, you will look at the solution of displaying text on the screen by using the print statement.

We'll cover the following

Let’s look at the code before jumping into the explanation:

Press + to interact
print "My first Perl Challenge!";

Explanation

As we can see, this is not a tricky solution. We just need to enclose text in the quotation marks ( " " ) and use print keyword to display text on the console.