what is the procedure to define a user define module in your
perl application?
Answer Posted / 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 |
Post New Answer View All Answers
What does -> symbol indicates in Perl?
Write syntax to use grep function?
Differentiate use and require?
How will you create a file in perl?
What is the different between array and hash in perl programming?
What is the use of "stderr()"?
What does localtime() do in perl?
What are some of the key features of objects in perl?
What are different data types that perl supports. Elaborate on them.
What do you mean by context of a subroutine?
How to read a file into a hash array?
What does cgi program store?
Which has highest precedence in between list and terms? Explain?
What are the advantages of perl programming?
You want to connect to sql server through perl. How would you do that?