I am doing some evaluating on a variable,
$Fw_Ip = %x[/usr/bin/plink -pw xxxxxx [email protected] “command” |grep
Now I want to do something depending on if the $Fw_Ip is empty or not.
if ($Fw_Ip != nil)
I guess that the variable is not empty so it will always return True but
if I puts $Fw_Ip it is empty.
Suggestions on how to solve it would be much appreciated.