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
Answer / hemant
I did't got ur answer ..!!
Can u explain it a lil Bit ...
Is This Answer Correct ? | 0 Yes | 1 No |
Answer / vinod mishra
open(FH, "file");
@array = <FH>;
%seen = ();
@uniq = grep{!seen{$_}++} @array;
Is This Answer Correct ? | 1 Yes | 6 No |
What purpose does each of the following serve: -w, strict, - T ?
What are different data types that perl supports. Elaborate on them.
What is posix in perl?
Why is it hard to call this function: sub y { "because" } ?
How does polymorphism work in perl?
In Perl, there are some arguments that are used frequently. What are that arguments and what do they mean?
while(my($key, $value) = each(%hash) ) { print "$key => $value\n"; } my($key, $value); while(($key, $value) = each(%hash) ) { print "$key => $value\n"; } What is the different between these two code in case of "my" usage ?
Which guidelines by Perl modules must be followed?
what are the two ways to get private values inside a subroutine or block?
What is perl? What is the basic command to print a string in perl?
What is the main function of cookie server?
What rules must be followed by modules in perl.