From: <ex...@ih...> - 2002-07-24 15:06:28
|
On Wed, 24 Jul 2002 00:08:02 -0700 Austin Schutz <te...@of...> wrote: > > > > $item could be like: [yes] or [no] or [/home/efudd] etc., etc. > > > > ..and a regexp of /[yes]/ will match a letter that is not a y, e, or s you mean "that is a y, e, or s", [^yes] is the anti-match > (perldoc perlre). I found myself getting frustrated trying to track down bugs > induced by strings which contained dots or question marks, which have special > meaning in perl regexps - thus the default literal matching behavior of > non-archaic versions of Expect. If you don't use '-re' you don't have to > worry about regexp meanings of characters, and the behavior is more > predictable. > That said, if you really want to use a regexp, try setting > $Expect::Exp_Internal=1 so you can see what/how the regexp is actually > matching. Whatever the case I still think it should wait forever trying to match. > > Austin > |