Write syntax to use grep function?
Answer / Jitendra Kumar Mahtha
In Perl, you can use the grep function with a block to filter elements from an array or list that match certain criteria. The basic syntax is: `grep { condition } @array`.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between module and package?
Why to use perl?
How will you create a file in perl?
Is perl a case sensitive language?
Which statement has an initialization, condition check and increment expressions in its body? Write a syntax to use that statement.
Define print() function in perl?
Differentiate use and require?
Explain lists and ivalue?
What does `new $cur->{LINK}' do? (Assume the current package has no new() function of its own.)
What is the purpose of “_file_ literal” and “_line_ literal” in perl?
what are the steps involved in reading a cgi script on the server?
How to disable the mod_perl from apache_server as i have used perlfect search on the site and its pagination is not working and the remedy is to disable the mod_perl.