Hi monks,
I am trying to store the output of a echo command into a variable but it's not getting stored into the variable.Can somebody please suggest something on this. Is it possible to store the output of a echo command into a variable.I am writting the code for refrence.Please help
my $res = `echo $JAVA_HOME`;
print "rs is $res\n";
if($res){
print "exist\n";
}
if(!$res){
print "doesn't exist\n";
}