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 happens in dereferencing?
How does a “grep” function perform?
Explain grooving and shortening of arrays?
Explain strftime() function in perl?
What does init 5 and init 0 do?
What is the use of "stderr()"?
How many types of operators are used in the Perl?
What is the function of cgiwrap in cgi programming?
Explain splicing of arrays?
How will you open a file in a write-only mode in perl?
What is the purpose of “_file_ literal” and “_line_ literal” in perl?
What is it meants by '$_'?
what is the main function of fork() in cgi programming?
Comment on data types and variables in perl.
For a situation in programming, how can you determine that Perl is a suitable?