a stack-based calculator in perl (mostly for teaching)