Title: RE: CPAN Module UNIX Windows newline character
Thanks Ted. My way may have only been for Windows (was kinda the point), and it may been a bit long winded but it gets the job done.
So there!
-Original Message-
From: Ted S. [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 18
On Mon, 18 Aug 2003, $Bill Luebkert wrote:
> Peter Eisengrein wrote:
>
> > Here's a simple unix2dos script to save you from having to do the MS
> > Word conversion in the future.
> >
>
> This script will only work on a Windoze system of course:
>
> > ### unix2dos.pl
> >
> > use strict;
> > use Fil
On 18 Aug 2003, $Bill Luebkert wrote in perl:
> Peter Eisengrein wrote:
>
>> Here's a simple unix2dos script to save you from having to do the MS
>> Word conversion in the future.
>>
>
> This script will only work on a Windoze system of course:
Hmmm. This is the Perl-Win32-Users mailing list,
The CPAN module is your friend. :) It will download
and install the modules for you. Either use PPM or
CPAN. Using CPAN is as simple as using PPM. Here is
the CPAN documentation:
http://search.cpan.org/author/JHI/perl-5.8.0/lib/CPAN.pm
Of course, you could also do it your way. But you are
taking
Carl Jolley wrote:
> On the other hand with the script:
>
> #!perl -pi.bak
> BEGIN { binmode STDIN; binmode STDOUT; }
> s/[\r*\n*]+$/\r\n/;
> __END__
>
>
> I can't figure out why you would want to replace the first string of one
> or more consecutive '*' characters on each line with "\r\n" whil
Peter Eisengrein wrote:
> Here's a simple unix2dos script to save you from having to do the MS
> Word conversion in the future.
>
This script will only work on a Windoze system of course:
> ### unix2dos.pl
>
> use strict;
> use File::Copy;
>
> my $file = $ARGV[0] || die "Usage: $0 filename\n"
Title: RE: CPAN Module UNIX Windows newline character
Here's a simple unix2dos script to save you from having to do the MS Word conversion in the future.
### unix2dos.pl
use strict;
use File::Copy;
my $file = $ARGV[0] || die "Usage: $0 filename\n";
my $temp = &q