in reply to General tips for Unix to Windows script migration?

There aren't many pitfalls. Any modules that you might encounter that you have doubts about can be checked against testing information.

The "\n" character cleanly prints CRLF. So you don't need to change your previous code. Perl is smart like that.

Windows 9x is less reliable than NT flavors, but that's just my observation.

Quick and Dirty newline fixer-uper (there's more than one better way to do this:)

#!/usr/bin/perl use strict 'vars'; use vars qw( @stuff $i @ARGV $fh ); $/ = undef; if (-e "$ARGV[0]"){ open ($fh, "+>>$ARGV[0]"); seek $fh,0,0; @stuff = <$fh>; foreach (@stuff){ $_ =~ s/\r/\n/mig; } seek $fh,0,0; truncate $fh,0; print $fh @stuff; close $fh; print "Done.\n"; } else{ print "Select a file that's actually there.\n"; }

Hope this helps.

John J Reiser
newrisedesigns.com