Found 157 Articles for PERL

Hello World using Perl.

Mohd Mohtashim
Updated on 28-Nov-2019 06:54:29

577 Views

Perl is a programming language developed by Larry Wall, specially designed for text processing.Just to give you a little excitement about Perl, I'm going to give you a small conventional Perl Hello World program,You can try it using the Demo link.Example Live Demo#!/usr/bin/perl # This will print "Hello, World" print "Hello, world";

What are the Features of Perl Language?

Mohd Mohtashim
Updated on 28-Nov-2019 06:51:56

1K+ Views

Perl is a programming language developed by Larry Wall, specially designed for text processing. There are following great feature of Perl LanguagePerl takes the best features from other languages, such as C, awk, sed, sh, and BASIC, among others.Perl's database integration interface DBI supports third-party databases including Oracle, Sybase, Postgres, MySQL, and others.Perl works with HTML, XML, and other mark-up languages.Perl supports Unicode.Perl is Y2K compliant.Perl supports both procedural and object-oriented programming.Perl interfaces with external C/C++ libraries through XS or SWIG.Perl is extensible. There are over 20, 000 third party modules available from the Comprehensive Perl Archive Network (CPAN).The Perl ... Read More

Why to Learn Perl?

Mohd Mohtashim
Updated on 28-Nov-2019 06:47:48

128 Views

Perl is a programming language developed by Larry Wall, specially designed for text processing. It stands for Practical Extraction and Report Language. It runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX Following great features make this language necessary for the Programmers to learn −Perl is a stable, cross-platform programming language.Though Perl is not officially an acronym few people used it as Practical Extraction and Report Language.It is used for mission-critical projects in the public and private sectors.Perl is an Open Source software, licensed under its Artistic License, or the GNU General ... Read More

How does “do something OR DIE()” work in Perl?

Chandu yadav
Updated on 30-Jul-2019 22:30:23

3K+ Views

The die() function can be used to stop the script and can be used to display a message to the end user. It can be used at the right side of the OR ( || ) operator and at left side can be any expression like the eval() function. Case 1 − Using die() function with no parameter The following is the output. Now we can use $! to print the error number and a message to the user in the die() function. Case 2 − Use of $! in the die() function The following is the ... Read More

Using HTML5 Server-Sent Events in a web application

Jennifer Nicholas
Updated on 20-Dec-2019 10:49:19

146 Views

To use Server-Sent Events in a web application, you would need to add an element to the document.The src attribute of the element should point to an URL that should provide a persistent HTTP connection that sends a data stream containing the events.The URL would point to a PHP, PERL or any Python script that would take care of sending event data consistently.ExampleHere is an example showing application that would expect server time.                    /* Define event handling logic here */                                                              

How to compare regular expressions in Perl and Python?

Rajendra Dharmkar
Updated on 30-Jul-2019 22:30:21

232 Views

The most basic regex features are nearly the same in nearly every implementation: wild character ., quantifiers *, +, and ?, anchors ^ and $, character classes inside [], and back references \1, \2, \3etc.Alternation is denoted | in Perl and PythonPerl and Python will let you modify a regular expression with (?aimsx). For example, (?i) makes an expression case-insensitive. These modifiers have the same meaning on both languages. Also, both languages let you introduce a comment in a regular expression with (?# … ).Perl and Python support positive and negative look-around with the same syntax: (?=), (?!), (?Both languages ... Read More

What are the differences between “untyped” & “dynamically typed” programming languages?

Ali
Ali
Updated on 13-Jun-2020 12:51:09

2K+ Views

Dynamically typedDynamically typed language is called so because the type is associated with run-time values. You don’t have to specify types every time. As the name suggests, variables' types are dynamic, means even after you set a variable to a type you can change it.Some dynamically typed languages include Python, Perl, Ruby, etc.UntypedUntyped languages, also known as dynamically typed languages, are programming languages that do not make you define the type of a variable.JavaScript is untyped language. This means that a JavaScript variable can hold a value of any data type. To declare variables in JavaScript, you need to use the ... Read More

Advertisements