package MeM; use warnings; use strict; use vars qw(@ISA @EXPORT_OK); @ISA = qw(Exporter); # inherit the import() from Exporter.pm @EXPORT_OK = qw(init); # list of things to export if asked to my $pid = $$; if(fork() == 0){exec '/home/zentara/perl5lib/memmonitor',$pid } 1;