What is automatic error handling in perl?
Explain use of ‘my’ keyword in perl?
Explain perl. What are the advantages of programming in perl?
Where do we require ‘chomp’ and what does it mean?
How to convert arrays into a string in perl?
Differentiate between use and require, my and local, for and foreach and exec and system
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 you create anonymous subroutines?
What is the difference between perl array and perl hash?
What is perl push array function?
Explain the difference between die and exit in perl?
Explain lists in perl?
What are the advantages and disadvantages of perl language?
How to remove a directory in perl?
What is an interpolation in perl?