• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 430
  • Last Modified:

perl


eval dat="$"${nf}_sw_py_th

if [ x$dat != "x" ]

what is the meaning of above statement in perl ?
0
damodar4u
Asked:
damodar4u
  • 3
  • 2
1 Solution
 
damodar4uAuthor Commented:
in that case nf is
nf="tato-matty"
0
 
farzanjCommented:
Are you sure this is in Perl.  It appears to be Bash (shell scripting).

The if statement is especially in Bash/Ksh.

If statement will be successful (true) if the value of $dat variable is not null.
0
 
farzanjCommented:
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
0
 
damodar4uAuthor Commented:
sorry this is not perl... this is shell scripting
0
 
farzanjCommented:
Yes, I know.  I hope the above answers are making sense.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now