Is perl compiler or interpreter?
You want to download the contents of a url with perl. How would you do that?
Where the command line arguments are stored and if you want to read command-line arguments with Perl, how would you do that?
Explain lexical variables.
What is the use of "stderr()"?
You want to read command-line arguements with perl. How would you do that?
What is a chop() function in perl?
Why should I use the -w argument with my Perl programs?
Explain use of ‘my’ keyword in perl?
What is confess function in perl?
what are the three groups involved in information sharing?
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,
How can arrays be tied?