Answer Posted / raghav
My Favourite module is CGI.pm Bcoz it can handle almost all
the tasks like
1. parsing the form input
2. printiing the headers
3. can handle cookies and sessions
and much more
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What value is returned by a lone `return;’ statement?
List the operator used in Perl?
Explain the difference between die and exit in perl?
Explain goto label, goto name, and goto expr?
How to turn on Perl warnings? Why is that important?
What are the various perl data types based on the context?
Explain what is the scalar data and scalar variables in Perl?
Mention how many ways you can express string in Perl?
Who created perl?
You want to print the contents of an entire array. How would you do that?
How to read a file into a hash array?
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,
What are the features of perl language?
What is the use of command “use strict”?
How to get help for perl?