Answer Posted / bhavani
Hash is an associative array where data is stored in
"key"->"value" pairs.
Eg : fruits is a hash having their names and price
%fruits = ("Apple", "60", "Banana", "20", "Peers", "40");
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
What is v-strings?
what are prefix dereferencer and list them out?
How do I sort a hash by the hash key?
What is the usage of -i and 0s options?
How to compare two strings in perl?
What does perl do in linux?
Where the command line arguments are stored and if you want to read command-line arguments with Perl, how would you do that?
How do I replace every TAB character in a file with a comma?
How many types of operators are used in the Perl?
How do I pass a command line argument in perl?
What is stdin in perl?
What is lexical variable in perl?
what are the two ways to get private values inside a subroutine or block?
What are the various file operations in perl. Explain with example.
What is the difference between perl list and perl array?