in reply to perl expect

Hi, janasec, this node explains the way I do similar things (in response to this node). A lot depends on how varied or unpredictable your work flow is.