Threads : this module is being used to run multiple subroutine simultaneouly.
Example
use threads;
my $t1=thread->create(\&sub1);
my $t2=thread->create(\&sub2);
$t1->join();
$t2->join();
sub sub1
{
print "You are in sub1";
}
sub sub2
{
print "You are in sub2";
}
Modules:
package NewModule;
use strict;
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
require Exporter;
@ISA = qw(Exporter AutoLoader);
# Items to export into callers namespace by default. Note: do not export
# names by default without a very good reason. Use EXPORT_OK instead.
# Do not simply export all your public functions/methods/constants.
@EXPORT = qw(
);
$VERSION = '0.01';
# Preloaded methods go here.
# Autoload methods go after =cut, and are processed by the autosplit program.
1;
__END__
Reference :
External Links:
http://mathforum.org/~ken/perl_modules.html
Perl Interprocess communications
http://www.xav.com/perl/lib/Pod/perlipc.html
Perl Module Anatomy