Answer Posted / mastan
because perl is high level language and it is portable and it is free and it is human oriented sysntax.
because of these we program inperl
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How does a “grep” function perform?
What does -> symbol indicates in Perl?
Explain the default scope of variables in perl?
How to concatenate strings in perl?
How the interpreter is used in Perl?
How does polymorphism work in perl? Give an example.
What are the different string manipulation operators 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 to read multi lines from a file in perl?
How interpreter is used in perl?
How do you set environment variables in perl?
Explain the various characteristics of perl.
Why aren't Perl's patterns regular expressions?
what is Polymorphism in Perl?