Main.pm imports the sub from Common.pm.package Contact::Contact; use base qw( Main ); #use Common; #why? use strict; print "contact.pm<br />"; my $msg = Main::show_here(); print $msg."<br />"; 1;
In reply to Re: Understanding module structure and inheritance
by wfsp
in thread Understanding module structure and inheritance
by bradcathey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |