Why do you use only Perl when there a lot of more languages available in market like C, Java?
1 4083Try 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 7529how to find a substring in a string without using substr built in functions, and print the substring found
3 14739sort a word "system" in perl/shell without using built in functions output should be emssty
emc2,
2 6557Packing 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 3625while (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??
2093There 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 ?"
2352
Explain chomp?
What does length(%HASH) produce if you have thirty-seven random keys in a newly created hash?
How to convert arrays into a string in perl?
What are the various flags/arguments that can be used while executing a perl program?
There 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 ?"
How to copy a file in perl?
Explain split function in perl?
What are the advantages of programming in perl?
What is the main function of cookie server?
How to remove a directory in perl?
Explain chomp, chop, cpan, tk.
How to read from a pipeline with Perl
What does -> symbol indicates in Perl?
How do I debug a perl program?
Explain the arguments for perl interpreter.