Distinguish my and local?
Explain splicing of arrays?
Explain grooving and shortening of arrays?
Explain chomp, chop, cpan, tk.
Write an example explaining the use of symbol tables.
What are the steps involved when the cgi program starts running?
What does Perl do if you try to exploit the execve(2) race involving setuid scripts?
What is a chop() function in perl?
I have one question regarding to eval function. I know eval function is use for error checking but I am not able to understand below line. eval \'exec perl -S $0 ${1+\"$@\"}\' if 0; $0 for script name $@ set if error occur
Explain tk?
What is the use of -t?
What is perl I used for?
Explain the difference between declarations of 'my' and 'local' variable scope in perl?
package MYCALC; use Exporter; our @EXPORT = (); our @ISA = qw(Exporter); our @EXPORT_OK = qw(addition multi); our %EXPORT_TAGS = (DEFAULT => [qw(&addition)],Both => [qw(&addition & +multi)]); sub addition { return $_[0] + $_[1]; } sub multi { return $_[0] * $_[1]; } 1; Program: use strict; use warnings; my @list = qw (2 2); use Module qw(:DEFAULT); print addition(@list),"\n"; Above coding is my module MYCALC and the program which using this module, I have not exported any function using @EXPORT, but I have used the DEFAULT in %EXPORT_TAGS with the function addition, when I call this function from the main it says the error as,
Write a program to concatenate the $firststring and $secondstring and result of these strings should be separated by a single space.