]
To: 'Scot Robnett' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 13:58
Subject: RE: Removing all \n in a text file.
Perl is amazing ... Reminds me of lisp where 4-5 of heavily recursive
lines do it all ... Just, thank G-d, its not heavily recursive :-)
Thanks
PROTECTED]
Sent: Monday, March 31, 2003 11:52 PM
To: Daniel Gross; [EMAIL PROTECTED]
Subject: RE: Removing all \n in a text file.
That seems like a lot of work when you could just do something like
what's shown below. And I'm sure someone is going to follow with
something shorter and cleaner than
That seems like a lot of work when you could just do something like what's
shown below. And I'm sure someone is going to follow with something shorter
and cleaner than this one, but it's a start. I did test it and it worked.
#!C:\Perl\bin\perl.exe -w
use strict;
my $file =
all \n in a text file.
That seems like a lot of work when you could just do something like what's
shown below. And I'm sure someone is going to follow with something shorter
and cleaner than this one, but it's a start. I did test it and it worked.
#!C:\Perl\bin\perl.exe -w
use strict;
my $file
.
inSite
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Ross Matt-QMR000
Sent: Monday, March 31, 2003 10:58 PM
To: [EMAIL PROTECTED]
Subject: RE: Removing all \n in a text file.
Same as Scot but instead of Chomp
$_ =~ s/\n//g;
that way if you would not chomp