What is the difference between perl list and perl array?



What is the difference between perl list and perl array?..

Answer / Sujata Gupta

In Perl, a list is simply an ordered collection of scalars (values), whereas an array is a variable that can hold multiple scalar values in its elements. Arrays are denoted by the `@` symbol before their name, while lists are used within code as an unnamed collection of scalars.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CGI Perl Interview Questions

Write a script to reverse a string without using perl's built in functions?

1 Answers  


How to read file into hash array ?

1 Answers  


how to extract pin_code,phone_number,year from text file using regular expressions in perl

1 Answers  


How do I pass a command line argument in perl?

1 Answers  


Explain grooving and shortening of arrays?

1 Answers  


What are different data types that perl supports. Elaborate on them.

1 Answers  


What is a chop() function in perl?

1 Answers  


What is perl push array function?

1 Answers  


What happens to objects lost in "unreachable" memory, such as the object returned by Ob->new() in `{ my $ap; $ap = [ Ob->new(), $ap ]; }' ?

1 Answers  


How to code in perl to implement the tail function in unix?

1 Answers  


Elaborate on perl bite-wise operators.

1 Answers  


How to count no of occurrence of a unique patterns in perl?

4 Answers   Ness Technologies,


Categories