Booking.com interview question

Explain map and grep functions in Perl?

Interview Answer

Anonymous

20 Nov 2012

Grep loops over a list and returns the list item if the condition is meet. Map loops over a list and return a value based on the code block.