what is the procedure to define a user define module in your
perl application?
Answers were Sorted based on User's Feedback
Answer / nachikethas
Create a .pm file eg xyz.pm and you can have subroutines or
what ever you want can be placed there.
#content of xyz.pm
package xyz;
sub Printit{
print "In module xyz...";
}
1;
#end of xyz.pm
for using this perl module in ur perl program eg abc.pl
# content of abc.pl
use xyz;
xyz->Printit();
#end pf abc.pl
hope this helps :)
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / subina
Package Module_name;
require Exporter;
@ISA = qw(list of base classes);
@Export = qw(list of symbols );
#------------code---------------------
#at the end of module
1;
| Is This Answer Correct ? | 0 Yes | 0 No |
How can the user execute a long command repeatedly without typing it again and again?
Explain what is lvalue?
What does read () command do?
What are scalars in perl?
what is CPAN?
how to get back up from private character editor which is saved in the format of .udf
What is the importance of perl warnings?
write a perl script to find whether a given line of text is starting and ending with same word or not ???
what are the two ways to get private values inside a subroutine or block?
what is the function that is used to identify how many characters are there in a string?
What is v-strings?
What is the closure in PERL?