Thanks, but now I’m getting an error instead:
20:20 >perl -I. main.pl
Not a GLOB reference at pragmatic.pm line 26.
BEGIN failed--compilation aborted at main.pl line 12.
20:20 >
(Line 12 in my main.pl file is the first occurrence of use pragmatic Foo;)
Update: That was under Strawberry Perl 5.26.0, and I get the same error with Cygwin Perl 5.22.4. But Strawberry Perl 5.20.2 seems to be working correctly:
20:26 >perl main.pl
Foo::foo at line 13
main::foo at line 16
Foo::foo at line 19
main::foo at line 22
Foo::foo at line 25
20:26 >
(Those line numbers are correct in my main.pl file.)