You don't split "main::", you pick a different name, "main::" is for stand alone programs not for modules
See zentara package/module tutorial and chapter 3 in Modern Perl
In reply to Re: How to split main package over multiple files (main is for programs)
by Anonymous Monk
in thread How to split main package into multiple files
by mmk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |