Syntactic Confectionery Delight | |
PerlMonks |
Re^4: How to pass a variable string as conditional argument to if statmentby Anonymous Monk |
on Feb 05, 2016 at 20:32 UTC ( [id://1154512]=note: print w/replies, xml ) | Need Help?? |
Hi,
I have a variable
$var = '10>5";
This string is obtained from a table and is stored in the variable.
I want to evaluate this string. If it is true, then execute.
E.g,
if($var is true){
}else {
}
I tried to use eval but is not working as expected.
In Section
Seekers of Perl Wisdom
|
|