in reply to Perl with MS Access Weirdness

I don't know why, but I don't like the s/\^M//g; bit. Why don't you change the two regexps dealing with line terminators to:

   $descriz =~ s/[\r\n]+//g;

Best regards

-lem, but some call me fokat

Replies are listed 'Best First'.
Re: Re: Perl with MS Access Weirdness
by Cody Pendant (Prior) on Jan 28, 2003 at 05:41 UTC
    I was just about to say that.

    No, seriously.

    If they're \rs and \ns, why are we replacing ^Ms?
    --
    “Every bit of code is either naturally related to the problem at hand, or else it's an accidental side effect of the fact that you happened to solve the problem using a digital computer.” M-J D