What interface used in PERL to connect to database? How do you connect to database in Perl?
No Answer is Posted For this Question
Be the First to Post Answer
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,
There are some duplicate entries in an array and you want to remove them. How would you do that?
Assuming both a local($var) and a my($var) exist, what's the difference between ${var} and ${"var"}?
What are the functions that can be performed using cgi program?
How do you set environment variables in perl?
Explain which feature of PERL provides code reusability?
You want to download the contents of a url with perl. How would you do that?
What are perl array functions?
Explain socket programming in perl?
Why to use perl?
How to count no of occurrence of a unique patterns in perl?
How do I replace every character in a file with a comma?