Link to home
Start Free TrialLog in
Avatar of nicky s
nicky sFlag for United States of America

asked on

perl


eval dat="$"${nf}_sw_py_th

if [ x$dat != "x" ]

what is the meaning of above statement in perl ?
Avatar of nicky s
nicky s
Flag of United States of America image

ASKER

in that case nf is
nf="tato-matty"
ASKER CERTIFIED SOLUTION
Avatar of farzanj
farzanj
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Avatar of nicky s

ASKER

sorry this is not perl... this is shell scripting
Yes, I know.  I hope the above answers are making sense.