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
Which statement has an initialization, condition check and increment expressions in its body? Write a syntax to use that statement.
What are the arguments and what do they mean in perl programming?
Explain string comparison operators in perl.
what is the difference between java and cgi?
How to compare two strings in perl?
“Perl regular expressions match the longest string possible”. What is the name of this match?
Which functions in perl allows you to include a module file. State their differences.
What is the use of '>>' in perl?
Explain subroutine?
Explain cpan?
Which has highest precedence in between list and terms? Explain?
How can arrays be tied?
Explain goto name?
How do I read command-line arguments with Perl?
For a situation in programming, how can you determine that Perl is a suitable?