in reply to regexp for scalar containing a mixture of LF & CRLF

Is that $doc variable a Notes::OLE object? In addition to the advice at Re: regexp for scalar containing a mixture of LF & CRLF, you might need to make a copy of the value out of $doc->{Body} prior to editing it.

Replies are listed 'Best First'.
Re^2: regexp for scalar containing a mixture of LF & CRLF
by NateTut (Deacon) on Dec 10, 2004 at 00:41 UTC
    You hit the nail right on the head. Once I made a copy of the object the regexp started working.

    Thanks!

    Doug
      I goofed by calling it a Notes::OLE object. You'd have a Win32::OLE object. I wrote Notes::OLE and the names just transposed themselves in my fingers while I typed to you.
        The important thing though is that you pointed out where the problem was.

        Doug