how to search a unique pattern in a file by using perl hash
map function ??? plz answer me
Answer Posted / vinod mishra
open(FH, "file");
@array = <FH>;
%seen = ();
@uniq = grep{!seen{$_}++} @array;
| Is This Answer Correct ? | 1 Yes | 6 No |
Post New Answer View All Answers
What are the steps involved when the cgi program starts running?
Explain lists ?
Explain goto label, goto name, and goto expr?
What is the use of "stderr()"?
In Perl, there are some arguments that are used frequently. What are that arguments and what do they mean?
How does a “grep” function perform?
Demonstrate subroutines in perl with a simple example.
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.
What is the use of now constructor in perl?
How to merge two arrays in perl?
What are perl variables?
what is the difference between java and cgi?
What is the peculiarity of returning values by subroutines in perl?
What is the purpose of “_file_ literal” and “_line_ literal” in perl?
List the operator used in Perl?