Re: Carriage returns

[email protected] (Geoff Youngs) Fri, 22 Sep 2000 08:21:13 +0100
Newsgroups perl.riscos
Message-ID <[email protected]>
David and Camilla Taylor once said:

> Greetings from Down Under,

Greetings!

> When I print a line to a file on the server I cannot avoid sending an
> unwanted carriage return even if I specifically use only a linefeed in the
> print instruction as in
> 
>          print RECORD "What a nuisance. \x0a";
>          
>  Is there any way of instructing perl to stop this nonsense?        

It doesn't actually seem to do that here, but you could try using 
  binmode RECORD;
after opening the file - designating it as binary output should/might prevent
the system appending a CR.

Yours,


Geoff.
-- 
Geoff Youngs, Technical Director
                       solutions.web - Internet Consultants
                            Tel. +44 (0) 23 9241 2340
                       Web : http://www.solutionsweb.co.uk/