What can be done for efficient parameter passing in perl? Explain.
What is the function of cgiwrap in cgi programming?
What is q (single q) operator in perl?
How can I implement the function overloading in Perl ? I read about the operator overloading, I do not know how to implement the function overloading. Thanks in advance ?
my @array=('data1','data2'); my @array1=('data1','data2'); my ($i,$k); $i=7; $k=7; while($i){ $array [++$#array] = 'ree'; $i--; print "@array"; } while($k){ push(@array1,'ree'); $k--; print "@array1"; } Are these two while loop are doing the same functionality ? What may be the difference?
Assuming both a local($var) and a my($var) exist, what's the difference between ${var} and ${"var"}?
Why we use CGI?
What is Perl?
What are perl variables?
Consider the following example #! /bin/perl use strict; sub sample { my @arr=(1,2,3,4); return @arr; } my ($a,$b,$c,$d) = &sample; print "$a\n$b\n$c\n$d\n"; In the above code, How can I get the $c without using the arguments such as $a,$b. I don't want to use any array to get the return values.
Explain the functioning of conditional structures in perl.
How many types of variable in perl?
Give an example of using the -n and -p option.