From: Austin S. <te...@of...> - 2002-07-24 07:08:36
|
> > $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 (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. Austin |