in reply to build an interpreter in perl
Parse::Eyapp would be another module to look at... (comes with pretty good documentation and examples).