Thanks for reply.
You won’t see any problems if you exports everything as written in perl-5.22.0/share/doc/perl/README.ZOS.
Attention please:
If you have any other perl on your system and you export e.g. export PATH=$PATH:/u/test/local/perl522/bin. Your $PATH will have two different paths to perl. System will use first perl.
e.g. echo $PATH
/u/test/local/perl587/bin:/u/test/local/perl522/bin
If you use command perl, than will be used perl from /u/test/local/perl587/bin.
The same error can be found when you exports perl’s libs.