As others have pointed out, the main purpose of packages is namespace management, but I wanted to point out that in your "with-package" version you are using the OO calling syntax, which is probably not what you want. I think what you want is
(Not use Common.pm;, btw.)use Common; my $returnvalue = Common::somesub();
the lowliest monk
In reply to Re: Package vs. plain file
by tlm
in thread Package vs. plain file
by bradcathey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |