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
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
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
> >
> &
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
> -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 &
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
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
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]
> 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
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
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: [
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
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
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
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
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
--- 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
Whats the command for removing the CRLF?
Mike
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
18 matches
Mail list logo