http://www.perlmonks.org?node_id=940071


in reply to Re^2: config options for Inline::Java
in thread config options for Inline::Java

Your test seems to indicate that there is a difference between 'path-to-java' and the contents of the environment variable. So why don't you print the contents of the variable and check for yourself:

BEGIN { print "#",$ENV{'J2SDK'},"#\n" } use Inline ( ... ); use Data::Dumper; $Data::Dumper::Useqq=1; print "For comparision:\n",Dumper('path-to-java', $ENV{'J2SDK'});

These tests will make sure that the environment variable doesn't change from the moment 'use' is executed (at an early phase of perl execution) to the start of the script and it also makes sure that you can see any hidden characters in the environment variable (Dumper + Useqq).