in reply to grepmail not 5.8.0 safe?

I haven't got 5.8.0 installed yet, so I can't try that here.

It's not clear from what you posted how you know grepmail's the problem. Is it involved in all the tests that failed?

Have you tried reinstalling grepmail? It's probably easier to diagnose grepmail problems directly, rather than by seeing how M::F::FR fails. And as a bonus, maybe once you've reinstalled the current version (and 4.70 is right, I just checked), the Mail package will suddenly work :)
--
Mike

Replies are listed 'Best First'.
Re: Re: grepmail not 5.8.0 safe?
by ph0enix (Friar) on Jul 31, 2002 at 12:38 UTC

    When invoking this version of grepmail with perl 5.8.0 all output start with:

    Useless (?g) - use /g modifier in regex; marked by <-- HERE in m/(?mg +<-- HERE x)^(From\s.*\d:\d\d:\d\d\s\d{4}| From\s.*\d:\d\d:\d\d\s\d{4}\s[+-]\d{ +4}| From\s.*\d:\d\d\s.*\w{2,3}\s\d{4})$/ + at ./grepmail.orig line 163.

    You can use following diff which reduces number of failing test to 55:)

    diff grepmail.orig grepmail 161c161 < while($READ_BUFFER =~ m/(?mgx)^(From\s.*\d:\d\d:\d\d\s\d{4}| --- > while($READ_BUFFER =~ m/(?mx)^(From\s.*\d:\d\d:\d\d\s\d{4}|
      Interesting... Did you add the /g to the close of the match, too?

      That while doesn't look like it will work without it...

      $ perl -e'$_="abcabcdabc";while(/(?g)(a[^a]+)/){print "$1\n"}' abc abcd abc
      Cool, with 5.6.1, ?g did "the right thing".

      I guess it was disallowed as a local modifier in 5.8.0 because it doesn't make sense to apply it to just part of the regex?
      --
      Mike