in reply to Re: REGEX different on Linux & Win32!
in thread REGEX different on Linux & Win32!

As seen below, this wasn't actually the problem. However, I do a lot of cross platform stuff and would suggest the following regexp for removing UNIX/Windows/Mac line endings:
my $ending =~ /\r?\n?$//;