On Thu, 4 Apr 2002 20:40:57 EST, [EMAIL PROTECTED] wrote: >I know this is off-topic, but my search engine left me nowhere else to go.
Try the macperl-anyperl mailing list. Or one of the Learning Perl mailing lists... <http://learn.perl.org/> >The question is this: I have an expression, for instance as follows, in a >scalar (string): > >$eval = "80-5"; > >What I want to do is to evaluate this and get the value of it. > >What I have tried is >eval { $expr; }; Drop the braces. You want a string eval, not a block eval. The only thing they have in common, is that they both catch otherwise fatal errors. And use your return value. $result = eval $expr; -- Bart.