Image

PERL is a general-purpose, interpreted and dynamic programming language.

BEGINNER

⇒ Code Examples

→ You must be bilingual (Fr/En). The code examples are in English.

→ Let's start with very simple codes. The more you progress, page after page, the more the scripts will be sophisticated. However, you will have to go through 30 to 40 pages per level, before moving on to the next step…

→ To evaluate your codes, click on the icon at the bottom left of the page (cogwheels), then choose a compiler from the list which will open in another tab. Be careful with certain formats. Finally, test your work.

→ Don't try to understand everything the first time, just practice. Some code examples will seem similar to you, yet the differences remain and you must find them.

→ The pagination is located below the compiler and below the comments area. The order of these pages is of little importance to beginners.

IT'S UP TO YOU TO COPY AND IMMERSE YOURSELF!

C 0001 - Hello World !
Reproduce this code (do not copy and paste!).

print("Hello World!")
C 0002 - Variables
Reproduce this code (do not copy and paste!).

$a = 10;
$b = 20;
$c = $a + $b;
print($c);
C 0003 - Scalar and typing. ATTENTION ! See the message !
Reproduce this code (do not copy and paste!).

use strict;
use warnings;
my $a = "Hello World !";
my $b = 68;
my $sum = $a + $b;
print "Result: $sum";
C 0004 - Output with Print
Reproduce this code (do not copy and paste!).

use strict;
use warnings;
my $a = "Hello World !";
my $b = 68;
my $sum = $a + $b;
print "Result: $sum";
C 0005 - Output with Print
Reproduce this code (do not copy and paste!).

print "Hello World\n";
print "See the result : ";
print 12 * 20;
print ".\n";

Log in to consult the resources on this page...

Not registered yet?

You need to practice more, masterize the fundamentals ? We offer you free resources and tech. watch.

However, unlike many resource sites that practice automatic registration, we take the time to get to know the users who register with Fond of Code, in accordance with the code of conduct available at www.theethicalweb.com...

You just have to fill out our form by clicking on the button below.... Thank you !

Image

CHOISISSEZ VOTRE COMPILATEUR

Reproduce this code, choosing one of the compilers below (don't copy and paste! It would be too easy). They all have the same function, just choose one according to your preferences.

When copying your code, replace the existing (default) code already in the compiler with your own.

Warning! For some of these compilers, you must choose the programming language yourself from the menu that is then offered. Of course, don't forget to click on RUN!

Responsibility

Some of the external links presented below, are not under the direct responsibility of Fond of Code. We cannot therefore be held responsible for the quality/Viability, or the temporary nor permanent interruption of some of them.

All about PERL

Code

Most important versions

Frameworks

Tools/Methodologies

Info+

» Creation date: 1987
* Created by Larry Wall
* Developed by The PERL Foundation
* Influenced by C, Basic, Eiffel...
* Multiplatform

News

The comments you leave us are systematically subject to rigorous moderation. Incivility and slander, threats, intimidation of all kinds, more generally all gratuitous verbal violence, or the dissemination of unverified information... are not tolerated. We also reserve the right to publish only comments which effectively advance the debate and allow a better understanding of the subject covered by the article presented on this page (as well as all its ramifications) and this, whatever its overall content.

Image

Fond of Code TM © ®
All rights reserved - Protected Trademark/Logo (INPI)

Legal structures based in
Nice - FRANCE

Montreal - Canada
By appointment

SIRET: 41138921600028 (France)
Inc. : 661515-5 (Canada, Qc.)
Official resumption in France : March 2025
Beta version of the website : May 2024
Implementation : July 2024
Launch of initial activity : 1996 (Europe and North America)
New version of the website : April 2025

Fond of Code official launch : May 2025

Image
Image