Explain grooving and shortening of arrays and splicing of arrays?
Answer / Akriti Porwal
Grooving is the process of creating a new array while reading elements from another array, and Shortening refers to removing elements from an array. Splicing allows you to remove, replace, or insert multiple elements into an array at specified positions.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is perl push array function?
Give an example of using the -n and -p option.
How many types of variable in perl?
What are the two ways to get private values inside a subroutine?
List the data types that Perl can handle?
Write a script for 'count the no.of digits using regular expressions in perl..
How to determine strings length in perl?
Explain grooving and shortening of arrays and splicing of arrays?
Try pattern matching for the following: 1) 10.111.23.11 2) /root/abc/cde/fgg/ac.xml --> Get file name without extention. 3) /root/abc/ac.xml/fgg/ac.xml --> Get file name without extention. 4) What does "DIE" meant in PERL? 5) chomp 6) "This is saturday" --> Print the weekday number. 7) 11-2-2009 --> Print the name of the month. 8) Reverse the string without using func in C.
How do you find the length of an array?
What does a die() function do in perl?
What are the various uses of perl?