gerry622 has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I tried to run this code, and seems to not work...
$IfCondition = '$TestVar1 eq "XB"';
$TestVar1 = "AB";
if ( $IfCondition ) {
print "found";
} else {
print "not";
};
.. is there really a way I can create a whole expression inside a variable.. and then execute it inside an IF condition statement?