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
Explain the functioning of conditional structures in perl.
Explain the different types of data perl can handle.
Which of these is a difference between Perl and C++ ?
What are the different string manipulation operators in perl?
Which statement has an initialization, condition check and increment expressions in its body? Write a syntax to use that statement.
Perl regular expressions are greedy" what does this mean?
How would you ensure the re-use and maximum readability of your perl code?
What does 'do' statement do in perl?
Is perl a case sensitive language?
How to read file into hash array ?
Which operator in perl is used for the concatenation of two strings?
What is the use of -n and -p options?
what is Perl one liner?
How to connect to SQL server through Perl?
How do I print the entire contents of an array with Perl?