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 numeric operators in perl?
Explain use of ‘my’ keyword in perl?
Write an example explaining the use of symbol tables.
How to read a directory in perl?
How do I replace every character in a file with a comma?
How to read file into hash array ?
How will you get the count of parameters passed to a perl subroutine?
How does polymorphism work in perl?
Explain chop?
explain the various functions/directives in perl that allow you to include/import a module. Also, state the differences between them.
Write a program to download the contents from www.perlinterview.com/answers.php website in Perl.
What is the difference between use and require in perl?
How to find the length of an array in perl?
What are the functions that can be performed using cgi program?
Comment on data types and variables in perl.