B
Billy Patton
I have a string
$expecxted_status = "!= 0";
$status = 0;
What I'm trying to do is
if ($status != 0) {
....
}
How do I get the $expected_status to evaluate to the boolean that it is, in
relation to $status?
$a = '== 0';
$b = '2';
eval { "$b $a" }; warn $@ if $@;
The above does nothing.
$expecxted_status = "!= 0";
$status = 0;
What I'm trying to do is
if ($status != 0) {
....
}
How do I get the $expected_status to evaluate to the boolean that it is, in
relation to $status?
$a = '== 0';
$b = '2';
eval { "$b $a" }; warn $@ if $@;
The above does nothing.