in reply to Processing command line arguments

The really badly documented Term::ReadLine will solve your timeout issue.