Answer Posted / rajganesh
Perl is a general purpose, high level, interpreter, dynamic
and open souce programming language. It's a powerful text
processing software and also used in system administration,
web developement, network programming language etc. We can
use it in both linux/unix and Windows environment also.
Hope this should be enough to the reason for programming in
PERL.
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
Which statement has an initialization, condition check and increment expressions in its body? Write a syntax to use that statement.
What are the different ways to run cgi?
Write the program to process a list of numbers.
What do you mean by context of a subroutine?
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,
Explain grooving and shortening of arrays and splicing of arrays?
What is use of ‘->’ symbol?
Can you add two arrays together?
What does redo statement do in perl?
Does Perl have objects? If yes, then does it force you to use objects? If no, then why?
How to read multi lines from a file in perl?
What is an interpolation in perl?
How will you open a file in a write-only mode in perl?
Explain the difference between "my" and "local" variable scope declarations. ?
How do I sort a hash by the hash key?