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 |
Why do you use Perl?
What is automatic error handling in perl?
What is boolean context?
How to concatenate strings with perl?
Mention what is cpan?
How the interpreter is used in Perl?
Consider the following example #! /bin/perl use strict; sub sample { my @arr=(1,2,3,4); return @arr; } my ($a,$b,$c,$d) = &sample; print "$a\n$b\n$c\n$d\n"; In the above code, How can I get the $c without using the arguments such as $a,$b. I don't want to use any array to get the return values.
What is the difference between exec and system?
What is the difference between perl list and perl array?
What is the difference between use and require in perl programming?
I have created a CGI-based page,after entering all the values in to the fields, How to get the output on the web browser using Perl
Name an instance where you used a CPAN module?