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 7638how to find a substring in a string without using substr built in functions, and print the substring found
3 14958sort a word "system" in perl/shell without using built in functions output should be emssty
emc2,
2 6667Packing 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??
2152There 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
How to get help for perl?
Define print() function in perl?
What are scalar data and scalar variables?
What is the difference between localtime() and gmtime() functions?
In Perl we can show the warnings using some options in order to reduce or avoid the errors. What are that options?
How to read a directory in perl?
How will you create a file in perl?
Comment on the scope of variables in perl.
What are the options that can be used to avoid logic errors in perl?
What are the various advantages and disadvantages of perl?
How to remove a directory in perl?
What are the logical operators used for small scale operations?
Why does Perl not have overloaded functions?
What is the function of virtual documents in cgi programs?
How to add elements in a hash in perl?