in reply to Re: Re: Re: Small Calculator!
in thread Small Calculator!

What if the result really is "false", e.g. zero?

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Small Calculator!
by sauoq (Abbot) on Oct 07, 2002 at 19:41 UTC

    Ouch. Right. That would probably be more important than error checking. How about:

    perl -ple'$_=eval||$@||0'
    -sauoq
    "My two cents aren't worth a dime.";
    
      Cool--I'll have to remember that.