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 |
what are prefix dereferencer and list them out?
Explain perl.
How do you set environment variables in perl?
You want to read command-line arguements with perl. How would you do that?
What purpose does each of the following serve: -w, strict, - T ?
Can any1 tell me 2 write the script using perl script 2 looking at a log file 2 see wheather the test has passed or not.
How to close a directory in perl?
What does delete function do in perl?
How to find out the version of PERL being installed on your LINUX machine.
what is CPAN?
What is eval function in perl?
What is the purpose of “_file_ literal” and “_line_ literal” in perl?