What is the different between array and hash in perl programming?
Answer / Ankush Sharma
In Perl, an array is a collection of scalars indexed by numbers, while a hash (also known as an associative array) is a collection of key-value pairs. Arrays are accessed using integers, while hashes are accessed using strings.
| Is This Answer Correct ? | 0 Yes | 0 No |
What happens when you return a reference to a private variable?
What is perl shift array function?
There are two types of eval statements i.e. Eval expr and eval block. Explain them.
What elements of the Perl language could you use to structure your code to allow for maximum re-use and maximum readability?
How to convert strings into an array in perl?
What are prefix dereferencer?
Remove the duplicate data from @array=(“perl”,”php”,”perl”,”asp”)
Differentiate between use and require, my and local, for and foreach and exec and system
How many types of primary data structures in Perl and what do they mean?
How do find the length of an array?
Write a program that shows the distinction between child and parent process?
How can information be put into hashes?