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 is Perl?
“Perl regular expressions match the longest string possible”. What is the name of this match?
Explain what is the scalar data and scalar variables in Perl?
How can you call a subroutine and identify a subroutine?
write a perl script to find whether a given line of text is starting and ending with same word or not ???
List the files in current directory sorted by size ?
Differentiate between use and require, my and local, for and foreach and exec and system
What is perl? What is the basic command to print a string in perl?
Explain grooving and shortening of arrays and splicing of arrays?
Packing and Unpacking. Hi, I want to get output as 0x23400000345.... in the below example How to get? i tried out, but unable to get the answer $r=0x234; $t=0x345; $y=pack('L L',$t,$r); $x1=unpack('L!',pack('P',$y)); printf("\nThe value is $x1"); I didn't get constant output
Explain the various characteristics of perl.
What does the qx{ } operator do?