in reply to perl pack function


The string is being converted to UTF8.

Since you are on Red Hat it is probably due to your $LANG environmental variable being set to a UTF8 dialect, which perl then picks up.

--
John.

Replies are listed 'Best First'.
Re^2: perl pack function
by fvgestel (Initiate) on Oct 26, 2005 at 13:50 UTC
    Yes, LANG is set to en_US.UTF-8

    But I just tried your binmode suggestion on socket S and it seems to work!

    Thanks a lot!