in reply to problem with Crypt::CBC

blindluke guessed it already, but anyway, a short look at perlrebackslash:

"\n matches a logical newline. Perl converts between \n and your OS's native newline character when reading from or writing to text files."

Your newline character is CRLF. But you don't need to care about because Perl does already ;-)

Regards, Karl

«The Crux of the Biscuit is the Apostrophe»