Articles on Trending Technologies

Technical articles with clear explanations and examples

What are Perl Numerical Literals?

Mohd Mohtashim
Mohd Mohtashim
Updated on 28-Nov-2019 417 Views

Perl stores all the numbers internally as either signed integers or double-precision floating-point values. Numeric literals are specified in any of the following floating-point or integer formats −TypeValueInteger1234Negative integer-100Floating point2000Scientific notation16.12E14Hexadecimal0xffffOctal0577

Read More

What are different Perl Data Types?

Mohd Mohtashim
Mohd Mohtashim
Updated on 28-Nov-2019 362 Views

Perl is a loosely typed language and there is no need to specify a type for your data while using it in your program. The Perl interpreter will choose the type based on the context of the data itself.Perl has three basic data types: scalars, arrays of scalars, and hashes of scalars, also known as associative arrays. Here is a little detail about these data types.Sr.No.Types & Description1ScalarScalars are simple variables. They are preceded by a dollar sign ($). A scalar is either a number, a string, or a reference. A reference is actually an address of a variable, which ...

Read More

What is Perl Identifiers?

Mohd Mohtashim
Mohd Mohtashim
Updated on 28-Nov-2019 727 Views

Perl borrows syntax and concepts from many languages: awk, sed, C, Bourne Shell, Smalltalk, Lisp, and even English. However, there are some definite differences between the languages. This chapter is designed to quickly get you up to speed on the syntax that is expected in Perl.A Perl program consists of a sequence of declarations and statements, which run from the top to the bottom. Loops, subroutines, and other control structures allow you to jump around within the code. Every simple statement must end with a semicolon (;).A Perl identifier is a name used to identify a variable, function, class, module, ...

Read More

Perl File Extension

Mohd Mohtashim
Mohd Mohtashim
Updated on 28-Nov-2019 3K+ Views

Perl is a general-purpose programming language originally developed for text manipulation and now used for a wide range of tasks including system administration, web development, network programming, GUI development, and more.A Perl script can be created inside of any normal simple-text editor program. There are several programs available for every type of platform. There are many programs designed for programmers available for download on the web.As a Perl convention, a Perl file must be saved with a .pl or.PL file extension in order to be recognized as a functioning Perl script. File names can contain numbers, symbols, and letters but ...

Read More

How to run Perl Program?

Mohd Mohtashim
Mohd Mohtashim
Updated on 28-Nov-2019 10K+ Views

The following are the different ways to start Perl.Interactive InterpreterYou can enter Perl and start coding right away in the interactive interpreter by starting it from the command line. You can do this from Unix, DOS, or any other system, which provides you a command-line interpreter or shell window.$perl -e               # Unix/Linux or C:>perl -e             # Windows/DOSHere is the list of all the available command-line options −Sr.No.Option & Description1-d[:debugger]Runs program under a debugger2-IdirectorySpecifies @INC/#include directory3-TEnables tainting checks4-tEnables tainting warnings5-UAllows unsafe operations6-wEnables many useful warnings7-WEnables all ...

Read More

Perl Installation on Macintosh Platform

Mohd Mohtashim
Mohd Mohtashim
Updated on 28-Nov-2019 412 Views

In order to build your own version of Perl, you will need 'make', which is part of the Apple developer tools usually supplied with Mac OS install DVDs. You do not need the latest version of Xcode (which is now charged for) in order to install make.Here are the simple steps to install Perl on Mac OS X machine.Open a Web browser and go to https://www.perl.org/get.html.Follow the link to download the zipped source code available for Mac OS X.Download the perl-5.x.y.tar.gz file and issue the following commands at $ prompt.$tar -xzf perl-5.x.y.tar.gz $cd perl-5.x.y $./Configure -de $make $make test $make ...

Read More

Perl Installation on Unix and Linux Platform

Mohd Mohtashim
Mohd Mohtashim
Updated on 28-Nov-2019 1K+ Views

Here are the simple steps to install Perl on Unix/Linux machine.Open a Web browser and go to  https://www.perl.org/get.html.Follow the link to download the zipped source code available for Unix/Linux.Download the perl-5.x.y.tar.gz file and issue the following commands at $ prompt.$tar -xzf perl-5.x.y.tar.gz $cd perl-5.x.y $./Configure -de $make $make test $make installNOTE − Here $ is a Unix prompt where you type your command, so make sure you are not typing $ while typing the above-mentioned commands.This will install Perl in a standard location /usr/local/bin and its libraries are installed in /usr/local/lib/perlXX, where XX is the version of Perl that you ...

Read More

Perl is Interpreted or Compiled Language?

Mohd Mohtashim
Mohd Mohtashim
Updated on 28-Nov-2019 1K+ Views

Perl is an interpreted language, which means that your code can be run as-is, without a compilation stage that creates a non-portable executable program.Traditional compilers convert programs into machine language. When you run a Perl program, it's first compiled into a byte code, which is then converted ( as the program runs) into machine instructions. So it is not quite the same as shells, or Tcl, which are strictly interpreted without an intermediate representation.It is also not like most versions of C or C++, which are compiled directly into a machine-dependent format. It is somewhere in between, along with Python ...

Read More

Perl and the Web

Mohd Mohtashim
Mohd Mohtashim
Updated on 28-Nov-2019 237 Views

Perl is a general-purpose programming language originally developed for text manipulation and now used for a wide range of tasks including system administration, web development, network programming, GUI development, and more.Perl used to be the most popular web programming language due to its text manipulation capabilities and rapid development cycle.Perl is widely known as "the duct-tape of the Internet".Perl can handle encrypted Web data, including e-commerce transactions.Perl can be embedded into web servers to speed up processing by as much as 2000%.Perl's mod_perl allows the Apache webserver to embed a Perl interpreter.Perl's DBI package makes web-database integration easy.

Read More

What is Perl Programming Language?

Mohd Mohtashim
Mohd Mohtashim
Updated on 28-Nov-2019 676 Views

Perl is a general-purpose programming language originally developed for text manipulation and now used for a wide range of tasks including system administration, web development, network programming, GUI development, and more.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 Public License (GPL).Perl was created by Larry Wall.Perl 1.0 was released to Usenet's alt.comp.sources in 1987.At the time of writing this tutorial, ...

Read More
Showing 54471–54480 of 61,248 articles
Advertisements