Syntactic Confectionery Delight | |
PerlMonks |
Re: taking an output in a variableby mickeyn (Priest) |
on Aug 01, 2006 at 06:16 UTC ( [id://564927]=note: print w/replies, xml ) | Need Help?? |
Hi there, Your mistake is that perl interpolates $JAVA_HOME before the echo command is executed and I guess $JAVA_HOME in your code isn't defined. Try $ENV{JAVA_HOME} to get the variable you want. If you insist (for any reason) to use the echo command's output or need to bypass the perl interpolation, write \$JAVA_HOME.
Enjoy,
In Section
Seekers of Perl Wisdom
|
|