Basics
Control Statement
Advanced
The programming language developed by Larry Wall for text processing is Perl. Practical Extraction and Report Language describes Perl. Windows, Mac, OS, and UNIX platforms support Perl. Procedural and object-oriented programming is supported in Perl. The interpreter is used with different systems so that Perl works well with all the systems. Perl is used for system administration, web development, network programming, and GUI development. An interpreter is not needed for Perl as there is no compilation stage. Perl is considered an in-between language of C and Python. Concepts and syntax are taken from different languages and integrate well with others.
This is used to send a mail with the subject and body as Hai. From and To attributes are also defined in the example below:
#!/usr/bin/perl
use strict;
use warnings;
use Email::MIME;
my $message = Email::MIME->create(
header_str => [
From => '[email protected]',
To => '[email protected]',
Subject => 'Hai!',
],
attributes => {
encoding => 'quoted-printable',
charset => 'ISO-7869-1',
},
body_str => "Hai!\n",
);
use Email::Sender::Simple qw(send mail);
send mail($message);
Web developers use Perl for website management as it is easy to use and has many text editors for text manipulation. Developers who are familiar with shell scripting can start learning Perl as their milestone towards learning programming languages. Also, it is used for the administration of different systems with many platforms.
By signing up, you agree to our Terms of Use and Privacy Policy.
Valuation, Hadoop, Excel, Web Development & many more
This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy