in reply to Remove extra carriage return (0D) on socket communications

A bit out of my league, but in searching, open has pragma for output handles:

use open OUT => ':bytes';

EDIT: Correct link to documentation

  • Comment on Re: Remove extra carriage return (0D) on socket communications

Replies are listed 'Best First'.
Re^2: Remove extra carriage return (0D) on socket communications
by PhillyR (Acolyte) on Nov 11, 2011 at 17:06 UTC
    I'm looking at this. Not sure I understand how I would use. Something like the following:
    open my $fh, ">&=$fn:bytes" or warn $! and die; #open socket to clien +t
      PhillyR I'm sorry, my documentation link didn't go to the correct place. This is what I meant

      It's a pragma, so you'd put it at the top of you code, like "use strict;"