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 |
Write a script to reverse a string without using perl's built in functions?
How to read file into hash array ?
how to extract pin_code,phone_number,year from text file using regular expressions in perl
How do I pass a command line argument in perl?
Explain grooving and shortening of arrays?
What are different data types that perl supports. Elaborate on them.
What is a chop() function in perl?
What is perl push array function?
What happens to objects lost in "unreachable" memory, such as the object returned by Ob->new() in `{ my $ap; $ap = [ Ob->new(), $ap ]; }' ?
How to code in perl to implement the tail function in unix?
Elaborate on perl bite-wise operators.
How to count no of occurrence of a unique patterns in perl?