From: Blackstone, J. D. <jda...@ci...> - 2002-08-05 13:57:52
|
> Btw, just noticed this. Did you mean: > > $exp->expect($timeout, > [ "regexp", \&callback ], > ^^^^^^^^ > > "substring"? If we allow for a Regex to be passed, DWIM > would seem > to indicate that a non-Regex would be a substring. > Gee, come to think of it, if we allow for Regex objects to be > passed, we probably don't need the ugly tomfoolery for > multiline matching, etc. And that's why I think precompiled regexes are my favorite new feature in all of Perl that's happened since 5.005. Probably favorite new feature since XS, to be honest. It's amazing what you can do with precompiled regexes. Especially with ref $regex. (Sounds like we lit a fire for Roland. :) ) jdb |