Skip to content

Tag Archives: Perl-Arrays

Perl is a general-purpose, interpreted, dynamic programming languages. Perl has three basic data types namely, scalars, arrays and hashes. Perl Lists The list is a… Read More
Multidimensional arrays in Perl are the arrays with more than one dimension. Technically there is no such thing as a multidimensional array in Perl but… Read More
In Perl, array is a special type of variable. The array is used to store the list of values and each object of the list… Read More
In Perl, array is a special type of variable. The array is used to store the list of values and each object of the list… Read More
The grep() function in Perl used to extract any element from the given array which evaluates the true value for the given regular expression. Syntax:… Read More
Perl has a built-in sort() function to sort an array of alphabets and numbers. When an array is passed to the sort() function it returns… Read More
pop() function in Perl returns the last element of Array passed to it as an argument, removing that value from the array. Note that the… Read More
A list in Perl is a collection of scalar values. We can access the elements of a list using indexes. Index starts with 0 (0th… Read More
Introduction to Lists A list is a collection of scalar values. We can access the elements of a list using indexes. Index starts with 0… Read More
Stack in Perl is a linear data structure that follows the LIFO (Last In First Out) or FILO (First In Last Out) order. In simpler… Read More
In Perl, the splice() function is used to remove and return a certain number of elements from an array. A list of elements can be… Read More
Perl provides various inbuilt functions to add and remove the elements in an array.     Function Description push Inserts values of the list at the… Read More
An array in Perl is a variable used to store an ordered list of scalar values. An array variable is preceded by an “at” (@)… Read More