in reply to Help with simple calculator script.
Some Super Search digging in our code vaults gives:
The problem with Juerd's is that it offers no error checking. This one does:
$ perl -ple'$_=eval'
$ perl -ple'$_=eval||$@||0'
Illegal division by zero at (eval 1) line 2, <> line 1.
"My two cents aren't worth a dime.";
1. Keep it simple
2. Just remember to pull out 3 in the morning
3. A good puzzle will wake me up
Many. I like to torture myself
0. Socks just get in the way
Results (315 votes). Check out past polls.