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

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


Please Help Members By Posting Answers For Below Questions

What does -> symbol indicates in Perl?

975


Explain split function in perl?

996


Explain lists ?

938


What are some of the key features of objects in perl?

944


What is lexical variable in perl?

937


what is the function that is used to identify how many characters are there in a string?

964


Demonstrate subroutines in perl with a simple example.

858


What is perl scripting?

942


How can you define “my” variables scope in Perl and how it is different from “local” variable scope?

1132


How do I pass a command line argument in perl?

977


What are prefix dereferencer?

921


Which has highest precedence in between list and terms? Explain?

867


When do you use perl programming?

1001


What are numeric operators in perl?

953


What is the difference between die and exit in perl?

1002