Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

When would `local $_' in a function ruin your day?

0 Answers  


What does -> symbol indicates in Perl?

0 Answers  


How to replace perl array elements?

0 Answers  


What is the use of "stderr()"?

0 Answers  


Explain tk?

0 Answers  


How to open a directory in perl?

0 Answers  


What does init 5 and init 0 do?

0 Answers  


What do you mean by context of a subroutine?

0 Answers  


Write syntax to add two arrays together in perl?

0 Answers  


What does the command "use strict" do and why should you use it?

2 Answers   Symphony, TCS,


What is hash?

0 Answers  


What is the use of -n and -p options?

0 Answers  


Categories