Either way is fine. You can include the path of the module's directory in @INC or in the environment variable PERL5LIB (see perlrun). Or you can change directory in a BEGIN block prior to using the module:
since the current working directory (".") is in perl's search path.BEGIN {chdir "/path/to/Desktop"}
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
In reply to Re: how to get a module to work in a specific directory
by shmem
in thread how to get a module to work in a specific directory
by chuckd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |