in reply to Global symbol x requires explicit package name at main.pl
Never name a module "Test" (or "test" on Windows). This has bitten me in the behind more often than I care to admit ;-)
The name "Test" will be overriden by the pre-installed Test.pm core module, unless you fuzz about with "use lib...". It's not worth it, call it "MyTest" or "Scrap" or something if it's temporary.
The reason "test" doesn't work on Windows is that Windows has a case-insensitive file system - you can't distinguish between files call Test.pm, test.pm or TEST.pm.
Tl;dr: don't ever call a package any permutation of "Test".