in reply to Re: Common subs and Global Variables
in thread Common subs and Global Variables

I'm surprised you don't need a use lib ".";

The Anonymous OP said "This is in Windows 10 (ugh) using Strawberry perl v5.20.2." and I'm pretty sure . was only removed in a later version (5.26 maybe?).


🦛

Replies are listed 'Best First'.
Re^3: Common subs and Global Variables
by cavac (Prior) on Mar 21, 2024 at 16:58 UTC

    5.26 in entirely correct: https://metacpan.org/release/XSAWYERX/perl-5.26.0/changes

    For security reasons, the current directory (".") is no longer included by default at the end of the module search path (@INC). This may have widespread implications for the building, testing and installing of modules, and for the execution of scripts. See the section "Removal of the current directory (".") from @INC" for the full details.

    PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP