Why do you use only Perl when there a lot of more languages available in market like C, Java?
1 4267Try pattern matching for the following: 1) 10.111.23.11 2) /root/abc/cde/fgg/ac.xml --> Get file name without extention. 3) /root/abc/ac.xml/fgg/ac.xml --> Get file name without extention. 4) What does "DIE" meant in PERL? 5) chomp 6) "This is saturday" --> Print the weekday number. 7) 11-2-2009 --> Print the name of the month. 8) Reverse the string without using func in C.
2 7752how to find a substring in a string without using substr built in functions, and print the substring found
3 15080sort a word "system" in perl/shell without using built in functions output should be emssty
emc2,
2 6782Packing 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
1 3819while (my ($key, $value) = each(%ENV)) {
print "$key - $value\n";
}
What does the above sample code produce?
What function do you use for reading a list of files within
a directory?
my %hash = (
'hi' => {'hello' => 'all'},
'bye' => {'later' => 'gone'}
);
print $hash{'hi'};
What is printed when the above code is executed?
sub new {
my $pkg = shift;
my $test = {'name' => shift;};
????
return $test;
}
Which one of the following replaces "????" in the above
code in order to cause the function new to return an object
of type "Test"?
while (
Hi, I am a accountant. I am preparing a balance sheet but because of staff shortage and time pressures I cant complete it on time. There is lot of common data with last years which I need not retype and I can manage by editing last year’s balance sheet ? Is their any software on net where I can do this easily??
2203There is no strict data types in perl unlike in other high level languages like Java so wouldn't that be a problem if a code in perl is to be a written by a big team of 20+ members ?"
2452
Explain the various characteristics of perl.
What does the qq{ } operator do?
Suppose an array contains @arraycontent=(‘ab’, ‘cd’, ‘ef’, ‘gh’). How to print all the contents of the given array?
What does next statement do in perl?
Explain the internal working of cgi
How can you call a subroutine and identify a subroutine?
What are the advantages of programming in perl?
What syntax is used for grep() function?
What is the use of -w, -t and strict in Perl?
What is chomp() operator/function?
What is 'commit' command in perl?
Explain 'grep' function.
What does `$result = f() .. g()' really return?
you are required to replace a char in a string and store the number of replacements. How would you do that?
How many loop control keywords are there in perl?