LIBPATH should not have to be set in any particular way for perl 5.24.
Are you sure you have the perl bin directory on your PATH? You can check this by running “which perl”.
Also, the PERL5LIB environment variable has to be set to /mydirectory/lib/perl5.
Finally, are you sure you ran change_pwd_perl.sh, as per the directions in README.ZOS?