in reply to Regex Unexplained Failure

I've managed to trace the error down to the use CGI qw(:cgi);
One of the unexpected side-effects of using CGI is that it invokes binmode() on STDIN, STDOUT, and STDERR. If somewhere upstream of the regex you assume "\n" instead of "\r\n", then something may be getting thrown off.

Replies are listed 'Best First'.
Re: Re: Regex Unexplained Failure
by Flame (Deacon) on Aug 04, 2002 at 03:07 UTC
    Chomp only removes the last char, doesn't it? so it's keeping the \n part?

    Flame goes off to test it.



    My code doesn't have bugs, it just develops random features.

    Flame ~ Lead Programmer: GMS