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 are the different string manipulation operators in perl?
What is an interpolation in perl?
What is the peculiarity of returning values by subroutines in perl?
How to concatenate strings in perl?
How do I send e-mail from a Perl/CGI program on a Unix system?
Why to use perl?
What is grep used for in perl?
Assuming both a local($var) and a my($var) exist, what's the difference between ${var} and ${"var"}?
How interpreter is used in perl?
Explain the difference between use and require?
my @array=('data1','data2'); my @array1=('data1','data2'); my ($i,$k); $i=7; $k=7; while($i){ $array [++$#array] = 'ree'; $i--; print "@array"; } while($k){ push(@array1,'ree'); $k--; print "@array1"; } Are these two while loop are doing the same functionality ? What may be the difference?
You want to open and read data files with perl. How would you do that?