nicky s
asked on
perl
eval dat="$"${nf}_sw_py_th
if [ x$dat != "x" ]
what is the meaning of above statement in perl ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
In the first statement, you are trying to form a variable name run time and trying to get the value of that variable.
So
The value of
$tato-matty_sw_py_th
This should be
tato_matty
So
The value of
$tato-matty_sw_py_th
This should be
tato_matty
ASKER
sorry this is not perl... this is shell scripting
Yes, I know. I hope the above answers are making sense.
ASKER
nf="tato-matty"