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
Differentiate between use and require, my and local, for and foreach and exec and system
Explain regular expression in perl?
What are the options that can be used to avoid logic errors in perl?
What are the various file operations in perl. Explain with example.
What are arrays in perl?
Explain cpan?
What is a chomp() function in perl?
explain the various functions/directives in perl that allow you to include/import a module. Also, state the differences between them.
What is hash?
What syntax is used for grep() function?
What is stdin in perl?
Write the program to process a list of numbers.
How to convert strings into an array in perl?
When would `local $_' in a function ruin your day?
How can we create perl programs in unix, windows nt, macintosh and os/2 ?