Hi Monks,
I have one line in a program I'm automating that will prompt sometimes, not always. How can I make an expect line "optional". In other words, if you don't see the string before the timeout is reached, don't send anything back. Here's the block I want to make optional.
$expect->expect($timeout,"Do you want to preserve the port number");
$expect->send("n\n");