Found 26504 Articles for Server Side Programming

What is Perl Programming Language?

Mohd Mohtashim
Updated on 28-Nov-2019 06:59:17

615 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 Applications of Perl Programming?

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

1K+ Views

Perl is one of the most widely used languages over the web. I'm going to list a few of them here −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.

Hello World using Perl.

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

968 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

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
Updated on 28-Nov-2019 06:47:48

324 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
Updated on 22-Nov-2019 11:58:52

234 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
Updated on 22-Nov-2019 11:57:49

581 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
Updated on 22-Nov-2019 11:57:20

526 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

Minimum partitions of maximum size 2 and sum limited by given value in C++

Narendra Kumar
Updated on 22-Nov-2019 11:24:10

110 Views

Problem statementGiven an array arr[] of positive numbers, find minimum number of sets in array which satisfy following property, A set can contain maximum two elements in it. The two elements need not to be contiguous.Sum of elements of set should be less than or equal to given Key. It may be assumed that given key is greater than or equal to the largest array element.ExampleIf arr[] = {1, 2, 3, 4} and k = 5 then following 2 pairs can be created −{1, 4} and {2, 3}AlgorithmSort the arrayBegin two pointers from two corners of the sorted array. If ... Read More

Minimum Players required to win the game in C++

Narendra Kumar
Updated on 22-Nov-2019 11:19:18

163 Views

Problem statementGiven N questions and K options for each question, where 1

Advertisements