while (<STDIN>) { chomp; ($_ eq "quit") ? last : print eval "$_", "\n"; } [download]
In reply to Re: Help with simple calculator script. by pg in thread Help with simple calculator script. by Anonymous Monk