Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^3: config options for Inline::Java

by jethro (Monsignor)
on Nov 25, 2011 at 13:31 UTC ( #940071=note: print w/replies, xml ) Need Help??

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).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://940071]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2016-10-21 16:51 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (289 votes). Check out past polls.