adspace
Answer Posted / Pankaj Kumari
Perl has a rich set of built-in functions for working with arrays. Some common ones include `@array` to get the entire array, `$array[index]` to access an element by its index, `push(@array, value)` or `splice(@array, index, 0, value)` to add elements to the array, `pop(@array)` to remove and return the last element, `shift(@array)` to remove and return the first element, and `@array = sort @sort_array` to sort an array.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to connect to SQL server through Perl?
How do find the length of an array?
What is perl? What is the basic command to print a string in perl?
There is no strict data types in perl unlike in other high level languages like Java so wouldn't that be a problem if a code in perl is to be a written by a big team of 20+ members ?"