Why do you use only Perl when there a lot of more languages available in market like C, Java?
1 4177Try 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 7641how to find a substring in a string without using substr built in functions, and print the substring found
3 14960sort a word "system" in perl/shell without using built in functions output should be emssty
emc2,
2 6668Packing 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 3739while (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??
2155There 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 ?"
2396
What is epoch time in perl?
How to know whether a key exists or not in perl?
Explain chomp, chop, cpan, tk.
You want to add two arrays together. How would you do that?
Enlist the advantages of using c over perl?
How can you call a subroutine and identify a subroutine?
You want to concatenate strings with perl. How would you do that?
How do I read command-line arguments with Perl?
How many loop control keywords are there in perl?
What are the various perl data types based on the context?
Which has the highest precedence, List or Terms? Explain?
If EXPR is an arbitrary expression, what is the difference between $Foo::{EXPR} and *{"Foo::".EXPR}?
How can you use Perl warnings and what is the importance to use them?
How to change a directory in perl?
How do I debug a perl program?