in reply to perl Expect question - how to "optionally" expect a string?
if(defined ($expect->expect($timeout,"Do you want to preserve the port + number"))) { $expect->send("n\n"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl Expect question - how to "optionally" expect a string?
by avonnieda (Novice) on Nov 06, 2009 at 19:51 UTC |