Why do you use only Perl when there a lot of more languages available in market like C, Java?
1 3408Try 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 6834how to find a substring in a string without using substr built in functions, and print the substring found
3 13698sort a word "system" in perl/shell without using built in functions output should be emssty
emc2,
2 5803Packing 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 3121while (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??
1752There 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 ?"
1991
Remove the duplicate data from @array=(“perl”,”php”,”perl”,”asp”)
How to concatenate strings in perl?
How to convert strings into an array in perl?
What is qq (double q)operator in perl?
How to create a directory in perl?
What is posix in perl?
Define perl scripting?
How to determine strings length in perl?
Why is it hard to call this function: sub y { "because" } ?
Differentiate between arrays and list in perl.
You want to add two arrays together. How would you do that?
How to open a directory in perl?
Give an example of the -i and 0s option usage.
What are the logical operators used for small scale operations? Explain them briefly.
Explain the meaning of closure in perl.