in reply to Unknown characters

try
 chomp $msg;
before printing!

Replies are listed 'Best First'.
Re^2: Unknown characters
by HyperDevil (Initiate) on Feb 08, 2011 at 22:25 UTC
    I have tried chomp; what happens is when i then try to print the string it is empty.
    When i length($msg); it still gives my a 46 back.
      Did you remember to $|=1? Otherwise the reason you're not seeing any output at all is probably just buffering.
        yes :)