On Fri, 29 Sep 2000 13:19:47 +0100, Hugo wrote:

>I think that involves
>rewriting your /p example something like:
>  if (/^$pat$/z) {
>    print "found a complete match";
>  } elsif (defined pos) {
>    print "found a prefix match";
>  } else {
>    print "not a match";
>  }

Except that this isn't exactly what would happen. Look, "1234E+2" is a
complete string matching the regex, but it could be that it's just a
prefix for "1234E+21". So, /^$pat$/z should fail. No? This doesn't seem
too intuitive, but that's a result from a minimal interface.

-- 
        Bart.

Reply via email to