Server Side Programming Articles

Page 1975 of 2107

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

What are the Features of Perl Language?

Mohd Mohtashim
Mohd Mohtashim
Updated on 28-Nov-2019 2K+ 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
Mohd Mohtashim
Updated on 28-Nov-2019 358 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

Minimum operations required to set all elements of binary matrix in C++

Narendra Kumar
Narendra Kumar
Updated on 22-Nov-2019 284 Views

Problem statementGiven a binary matrix of N rows and M columns. The operation allowed on the matrix is to choose any index (x, y) and toggle all the elements between the rectangle having top-left as (0, 0) and bottom-right as (x-1, y-1). Toggling the element means changing 1 to 0 and 0 to 1. The task is to find minimum operations required to make set all the elements of the matrix i.e make all elements as 1.ExampleIf input matrix is {0, 0, 0, 1, 1}    {0, 0, 0, 1, 1}    {0, 0, 0, 1, 1}    {1, 1, ...

Read More

Minimum operations to make the MEX of the given set equal to x in C++

Narendra Kumar
Narendra Kumar
Updated on 22-Nov-2019 636 Views

Problem statementGiven a set of n integers, perform minimum number of operations (you can insert/delete elements into/from the set) to make the MEX of the set equal to x (that is given).Note − The MEX of a set of integers is the minimum non-negative integer that doesn’t exist in it. For example, the MEX of the set {0, 2, 4} is 1 and the MEX of the set {1, 2, 3} is 0ExampleIf n = 5 and x = 3 and array is {0, 4, 5, 6, 7} then we require minimum 2 operationsAlgorithmThe approach is to see that in ...

Read More

Minimum operations to make XOR of array zero in C++

Narendra Kumar
Narendra Kumar
Updated on 22-Nov-2019 581 Views

Problem statementWe are given an array of n elements. The task is to make XOR of whole array 0. We can do following to achieve this.We can select any one of the element −After selecting element, we can either increment or decrement it by 1.We need to find the minimum number of increment/decrement operation required for the selected element to make the XOR sum of whole array zeroExampleIf arr[] = {2, 4, 7} then 1 operation is required −Select element 2Decrement it by 1Now array becomes {3, 4, 7} and its XOR is 0AlgorithmFind the XOR of whole arrayNow, suppose ...

Read More
Showing 19741–19750 of 21,061 articles
Advertisements