set_uk has asked for the wisdom of the Perl Monks concerning the following question:

I am about to create a Perl::Expect script which will be able to read in a sequence of commands and depending on success or failure will either step forward through the sequence or back through it.
Has anyone attempted anything similar to this - I searched using keywords Expect and Module but couldn't see anything similar. Thanks