Perl Interview Questions and Answers For Graduates Part-5
41.How will you add an element to a hash? Adding a new key/value pair can be done with one line of code using simple assignment operator. #!/usr/bin/perl %data = (‘John Paul’ => 45, ‘Lisa’ => 30, ‘Kumar’ => 40); @keys…
Read More