How to know that the environment used in the script is the same that the program will see when it runs?.
Perl stores the environment in %ENV to my knowledge.
i am trying to use the code which is mentioned below in order to know the variables.
require Data::Dumper;
print STDERR Data::Dumper::Dumper( \%ENV );
Is there any procudure to check the env variables used before the script starts executing?
Not sure what you’re getting at, but you can put your code inside a
BEGINblock to see what your environment variables are before any modules you use are loaded.