How would I complete the ev routine?my $question="67.35 >= 50 && 67.35 < 80";
#!C:/perl/bin/perl.exe use warnings; use strict; use re 'eval'; my $question="67.35 >= 50 && 67.35 < 80"; my $ans=ev($question); print "ans=$ans\n"; sub ev { ... ? }
In reply to using re 'eval' for varibable math by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |