my %allowed = qw{ ( ( ) ) ! !! & && }; my $finalExpr = map { $allowed{$_} || die "not allowed '$_'" } split ' +', $expr; my $result = eval $finalExpr;
In reply to Re: Logic expression evaluation not working. What am I doing wrong?
by Anonymous Monk
in thread Logic expression evaluation not working. What am I doing wrong?
by perl_learner_2016
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |