Perl »

My Coding > Programming language > Perl

Perl

Perl is a family of two high-level, general-purpose, interpreted, dynamic programming languages. Perl is a highly expressive programming language: source code for a given algorithm can be short and highly compressible. Perl 7 was announced on 24 June 2020 at "The Perl Conference in the Cloud" as the successor to Perl 5.

Basic syntax

Begining of the Perl file

Perl file have file extension .pl and it should start from perl location. Also I do advise to initialize strongest syntax check.


#!/usr/bin/perl
use strict;
use warnings FATAL => 'all';

Comments

Comments can be started from # or for multiline comments kept between =pod and =cut lines


# this is one line comment
print "Hello, World!\n"; # comment can be started here
=pod
this line is comment
and this line is comment
=cut


Published: 2021-09-07 03:14:06
Updated: 2021-09-07 06:44:42

Last 10 artitles


9 popular artitles

© 2020 MyCoding.uk -My blog about coding and further learning. This blog was writen with pure Perl and front-end output was performed with TemplateToolkit.