what r the different type of function in perl ???
Answer Posted / archana
http://perldoc.perl.org/index-functions.html
this page having all funtions in perl
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Demonstrate subroutines in perl with a simple example.
What is subroutine in perl?
How to know whether a key exists or not in perl?
What does delete function do in perl?
Explain the different types of data perl can handle.
what is the function of Return Value?
Does Perl have reference type?
How to read multi lines from a file in perl?
What does file test operators do in perl?
What are the steps involved when the cgi program starts running?
What package you use to create a windows services?
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 does this symbol mean '->'?
How do you turn on the perl warnings?
What is the use of strict?