in reply to Re: Re: Weird Net::POP3 problem
in thread Weird Net::POP3 problem

If both "versions" of "ryoko" consistently yield different results, despite appearing identically, your assumption that they are the same value is invalid. The likely possibility is that there are unprintable characters in the string. If the file was generated under MS-DOS, for instance, you might be seeing a trailing ^Z or something. Newline conventions might also be screwing you up, but if you saw a quotation mark followed by ryoko followed by another quotation mark, that's probably not it.

I would try splitting the string up and examining each byte, printing its value. That way you can be sure the strings are truly identical. (That, or use 'eq' I guess.)

Replies are listed 'Best First'.
Re: Re: Re: Re: Weird Net::POP3 problem
by j0e (Acolyte) on Apr 13, 2001 at 06:49 UTC
    I tried examining the string with the following line of code, which should split the string into an array of ASCII values:
    my @blah = map { ord } split(//, $pop3_host);
    Unfourtunatley, I recieved identical results for both 'versions' of ryoko, and neither of them seemed to have unpritable chars or newline chars. Is there a different way I should be examining the string?