Explain USE and REQUIREMENT statements?
No Answer is Posted For this Question
Be the First to Post Answer
What is the difference between for & foreach, exec & system?
how to get back up from private character editor which is saved in the format of .udf
What is the difference between exec and system?
How to access parameters passed to a subroutine in perl?
Write a program that shows the distinction between child and parent process?
What is the difference between module and package?
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 numeric operators in perl?
What is the closure in PERL?
Write a program to concatenate the $firststring and $secondstring and result of these strings should be separated by a single space.
What is the difference between $array[1] and @array[1]?
What are perl strings?