Skip to end of metadata
Go to start of metadata

If you get the error

while starting a Perl API job but the same Perl script runs on the command line then you have a different environment in the JobScheduler.

You have to set the $PERL5LIB environment variable to fix this problem.
Please look at the article How to program the JobScheduler API in Perl to get more information.