in reply to unix to windows?

isn't the bash shell available for windows? let them use that.

Replies are listed 'Best First'.
Re: Re: unix to windows?
by softworkz (Monk) on Jun 06, 2001 at 16:26 UTC
    Wouldn't this work?
    package GlobArgv; use strict; my $file = (); my $line = (); @ARGV = map { glob } @ARGV; 1; foreach $file(@ARGV) { my $string; $/ = ""; foreach ($file) { open (FILE, $_); $string = <FILE>; close FILE; $string =~ s/\r\n/\n/sig; $string =~ s/\r/\n/sig; open (FILE, ">$_"); print FILE $string; close FILE; } rename ($file, "$file.txt") or die "can't rename $file: $!"; print "process completed for: $file \n"; 2;