P is for Practical | |
PerlMonks |
RE: Simple Calculatorby cwest (Friar) |
on Jun 29, 2000 at 18:12 UTC ( [id://20373]=note: print w/replies, xml ) | Need Help?? |
That's pretty cool, here's a simple calculator too ;-)
#!/usr/local/bin/perl -w use strict; $|++; print "> "; print eval, "\n> " while chomp( $_ = <STDIN> );Enjoy! -- Casey
In Section
Code Catacombs
|
|