Re: Writing DOS CRLF via Unix Perl

2007-11-09 Thread Rob Dixon
Wagner, David --- Senior Programmer Analyst --- WGO wrote: -Original Message- From: C.R. [mailto:[EMAIL PROTECTED] Sent: Thursday, November 08, 2007 12:34 To: beginners@perl.org Subject: Writing DOS CRLF via Unix Perl I run a script on unix Perl to write a text file. By default, when

Re: Writing DOS CRLF via Unix Perl

2007-11-09 Thread Xavier Noria
On Nov 8, 2007, at 9:33 PM, C.R. wrote: I run a script on unix Perl to write a text file. By default, when Perl writes "\n" it writes a line ending sequence which is native to the current OS. How do I force this particular script to always write DOS CRLF line endings? A good appr

RE: Writing DOS CRLF via Unix Perl

2007-11-09 Thread Jenda Krynicky
From: "Wagner, David --- Senior Programmer Analyst --- > > -Original Message- > > From: C.R. [mailto:[EMAIL PROTECTED] > > Sent: Thursday, November 08, 2007 12:34 > > To: beginners@perl.org > > Subject: Writing DOS CRLF via Unix Perl > > > &

Re: Writing DOS CRLF via Unix Perl

2007-11-08 Thread Tom Phoenix
On 11/8/07, C. R. <[EMAIL PROTECTED]> wrote: > I run a script on unix Perl to write a text file. By default, when Perl > writes "\n" it writes a line ending sequence which is native to the > current OS. How do I force this particular script to always write DOS > C

RE: Writing DOS CRLF via Unix Perl

2007-11-08 Thread Wagner, David --- Senior Programmer Analyst --- WGO
> -Original Message- > From: C.R. [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 08, 2007 12:34 > To: beginners@perl.org > Subject: Writing DOS CRLF via Unix Perl > > I run a script on unix Perl to write a text file. By default, > when Perl > writes &

Writing DOS CRLF via Unix Perl

2007-11-08 Thread C . R .
I run a script on unix Perl to write a text file. By default, when Perl writes "\n" it writes a line ending sequence which is native to the current OS. How do I force this particular script to always write DOS CRLF line endings? Thanks. -- To unsubscribe, e-mail: [EMAIL PROT

Re: CRLF

2003-07-08 Thread Rob Dixon
for > is it chr(10)chr(13) ? > or "\c\l"? If you use Socket(:crlf); then it will import constants CR, LF and CRLF for you as well as the scalars $CR, $LF and $CRLF with the same values. Note that this should be safe as none of the other 'Socket' ident

Re: CRLF

2003-07-08 Thread John W. Krahn
e what is > the code for is it chr(10)chr(13) ? > or "\c\l"? my $CRLF = "\015\012"; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: CRLF

2003-07-07 Thread Bryan Harris
> I'm having a hard time commecting to an smtp server when i sed the "Subject: > any\n\n"; it replyes with an web page address saiing that i'm triing to send a > "bare LF" well so can anybody tell me what is the code for is it > chr(10)chr(13) ? > or "\c\l"? I'm not sure you want , that's the D

CRLF

2003-07-07 Thread Andre Chaves Mascarenhas
Hi I'm having a hard time commecting to an smtp server when i sed the "Subject: any\n\n"; it replyes with an web page address saiing that i'm triing to send a "bare LF" well so can anybody tell me what is the code for is it chr(10)chr(13) ? or "\c\l"? Thanks

Re: CRLF vs LF questions

2003-01-10 Thread David Eason
HTML-Kit will do that, too. It's just that I have been known to open up lesser editors from time to time, such as Notepad. I'll check with my ISP to see if the Perl on the Cobalt Raq's can be upgraded. It doesn't matter that much, though. Thanks for the replies. -- To unsubscribe, e-mail: [

Re: CRLF vs LF questions

2003-01-09 Thread Rob Dixon
David Re Q1. Get yourself a copy of TextPad http://www.textpad.com/ which will handle any of ANSI, DOS, Unicode or UTF-8 encoding. It identifies the encoding automatically fromt he contents and allows you to change it using Save As... HTH, Rob "David Eason" <[EMAIL PROTECTED]> wrote in message

Re: CRLF vs LF questions

2003-01-09 Thread Jenda Krynicky
d not care (almost) whether there are CRLFs or LFs. You might have problems with heredocs and the multiline string constants may contain CRLF, but that's about it. Anyway, we are all Perl programmers here. It should not be a big problem to create a script that'll convert all files that need

CRLF vs LF questions

2003-01-09 Thread David Eason
Q1. For Windows, does anyone know of a Windows Explorer add-on that makes Perl source files with CR-LF terminated lines appear in a different color or something so I can easily see they need to be corrected? Q2. Are there any Linux versions of Perl that "don't care" whether the source file ends in

CRLF UNIX->windows && windows ->unix

2002-12-06 Thread Mark Goland
Hi guys, I am trying to write a client/server app. The problem I am having, has to do with line terminators. my questions is when I connect from unix to windows do I need to set $\= CRLF and form windows to unix $\=LF ?? also is there a method to deturnime which machine is connecting to which

Re: Remove CRLF

2002-06-16 Thread drieux
On Saturday, June 15, 2002, at 03:04 , Michael Pratt wrote: > Whats the command for removing the CRLF? > > Mike Mike, As noted the simple solution is 'chomp' - assuming that you are on a system that considers to be the EOL token... but sometimes you want to expressly ge

Re: Remove CRLF

2002-06-15 Thread Ovid
--- Michael Pratt <[EMAIL PROTECTED]> wrote: > Whats the command for removing the CRLF? > > Mike I assume you want to remove the input record separator from a variable. If so, you can read perldoc -f chomp Cheers, Curtis "Ovid" Poe = "Ovid" o

Remove CRLF

2002-06-15 Thread Michael Pratt
Whats the command for removing the CRLF? Mike -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]