On 27 July 2018 at 05:21, Andy Bach <afb...@gmail.com> wrote: > > or, as Perl treats the "::" as a path denoter: > $ perl -e 'use test::mytest; mytest::hello()' > hello > > or: > $ perl -mtest::mytest -e 'mytest::hello()' > hello > > find ./test/mytest.pm via @INC's "."
Note: neither of those examples work on Perl 5.26 or greater, as those examples rely on "." being in @INC, which it no longer is. To resolve, your examples either need a "-I." in them, or alternatively, just use that format and call it like: perl -Itest -Mmytest -e "mytest::hello()" ( There's a workaround available that globally returns '.' to @INC, but its gonna be gone in 5.30 or so ) -- Kent KENTNL - https://metacpan.org/author/KENTNL -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/