If you want to know how to pass strings that look like variable names to the shell via backticks, you need to quote the special chars:To be completely thorough and pedantic, you can also use the qx operator with single quotes:my $res = `echo \$JAVA_HOME`;
my $res = qx'echo $JAVA_HOME';
-QM
--
Quantum Mechanics: The dreams stuff is made of
In reply to Re^2: taking an output in a variable
by QM
in thread taking an output in a variable
by s_gaurav1091
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |