how to search a unique pattern in a file by using perl hash
map function ??? plz answer me

Answers were Sorted based on User's Feedback



how to search a unique pattern in a file by using perl hash map function ??? plz answer me..

Answer / hemant

I did't got ur answer ..!!
Can u explain it a lil Bit ...

Is This Answer Correct ?    0 Yes 1 No

how to search a unique pattern in a file by using perl hash map function ??? plz answer me..

Answer / vinod mishra

open(FH, "file");
@array = <FH>;
%seen = ();
@uniq = grep{!seen{$_}++} @array;

Is This Answer Correct ?    1 Yes 6 No

Post New Answer

More CGI Perl Interview Questions

What are the logical operators used for small scale operations?

0 Answers  


What is eval function in perl?

0 Answers  


Which has the highest precedence, List or Terms? Explain?

0 Answers  


write a script to display mirror image of a entered value and also check whether Palindrome

3 Answers   HCL, Persistent,


What is the main function of cookie server?

0 Answers  


What are the two ways to get private values inside a subroutine?

0 Answers  


Why do you program in Perl?

4 Answers  


What is the function of cgiwrap in cgi programming?

0 Answers  


what is perl language?

0 Answers  


What does a die() function do in perl?

0 Answers  


What are the features of perl language?

0 Answers  


Explain perl.

0 Answers  


Categories