Explain grooving and shortening of arrays and splicing of arrays?



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

Post New Answer

More CGI Perl Interview Questions

What is perl push array function?

1 Answers  


Give an example of using the -n and -p option.

1 Answers  


How many types of variable in perl?

1 Answers  


What are the two ways to get private values inside a subroutine?

1 Answers  


List the data types that Perl can handle?

1 Answers  


Write a script for 'count the no.of digits using regular expressions in perl..

6 Answers   AppLabs,


How to determine strings length in perl?

1 Answers  


Explain grooving and shortening of arrays and splicing of arrays?

1 Answers  


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.

2 Answers  


How do you find the length of an array?

1 Answers  


What does a die() function do in perl?

1 Answers  


What are the various uses of perl?

1 Answers  


Categories