You create a shell by executing a shell command that sets the environment variable in the shell and then exits the shell without doing anything with the environment variable. You never changed perl
environment. This will be done using
local $ENV{PATH} = "$ENV{PATH}:/usr/local/jdk/bin";
However, it is strange to add at the end of the path.
source share