jakarta-oro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From I Lee Hetherington <...@sls.lcs.mit.edu>
Subject Perl5Util problem with m/.../m
Date Mon, 30 Oct 2000 21:03:59 GMT
I am having a problem with multi-line matching.  The following worked
returned true in PerlTools 1.2, but not with the 2.0 version.

         static boolean test() {
             String input = "abcdef\ndef\n";
             Perl5Util perl = new Perl5Util();
             return perl.match("m/^def/m", input);
         }

The "m" at the end, indicating multi-line, doesn't seem to have any
effect.  A similar construct in Perl 5.005003 works fine, as does the
PerlTools 1.2 code.

Am I doing something wrong or is "m" broken?

--Lee Hetherington





Mime
View raw message