Zoo tutorials: [ SQL | Linux | XML ]
ProgZoo: [ Java | C# | VB | C++ | Perl ]
Log in

A Gentle Introduction to
Perl Programming

Printing lines

 

0) Hello World

Printing lines

1. [ Perl ] Printing lines


Big

We can use the built in variable $/ to represent the end or record character. More commonly we use the escape sequence \n to represent the new line character

The program prints on two lines as shown.

Hello
World