Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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 { ... ? }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: using re 'eval' for varibable math
by ikegami (Patriarch) on Apr 19, 2005 at 14:59 UTC | |
by Anonymous Monk on Apr 19, 2005 at 15:03 UTC | |
Re: using re 'eval' for varibable math
by tall_man (Parson) on Apr 19, 2005 at 20:53 UTC | |
Re: using re 'eval' for varibable math
by salva (Canon) on Apr 19, 2005 at 15:55 UTC |