How to find out the version of PERL being installed on your
LINUX machine.
Answer Posted / shashi
Just write perl -v
it will display the version:
This is perl, v5.8.5 built.........
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is the use of 'ne' operator?
Show the use of sockets for the server and client side of a conversation?
What is q (single q) operator in perl?
What is perl I used for?
What does init 5 and init 0 do?
How can you define “my” variables scope in Perl and how it is different from “local” variable scope?
What is the purpose of “_file_ literal” and “_line_ literal” in perl?
How do I do fill_in_the_blank for each file in a directory?
What is perl scripting?
Is perl compiler or interpreter?
What is -> symbol in perl?
Differentiate use and require?
“The methods defined in the parent class will always override the methods defined in the base class”. What does this statement means?
Can inheritance be used in perl? Explain with the help of an example.
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,