in reply to Interactive program
Do you know of some procedure or something like a pragma to build interactive CLI programms?
By "pragma" I wonder if you don't just mean a module...
See Term::ReadLine maybe.