APM: Perl on Windows 2000

Tom.Bakken Tom.Bakken at tx.usda.gov
Wed Sep 11 11:23:03 CDT 2002


I'm off to a creaky start running perl scripts on a windows 2000
server.  I'm used to LINUX, so maybe somebody that's been down this road
can share some of their hard earned experience with me.

I've written a very simple perl script:
#!perl -w
use strict;
use CGI;
unless (open BACKUPFILE, "f:/serverbackup/2002.09.10.11.00p.txt") {
  die "Cannot read backup file: $!";
}
while (<BACKUPFILE>) {
  chomp;
  print;
  #print if /^ Backup Type:/ ;
  #print if /B a/ ;
}

Which works great as far as opening and reading the file. 
Unfortunately, there's some white space between each of the characters. 
The file looks normal in word pad and notepad and type the file from the
command prompt, but when I use edit from the command prompt and print
the file from the perl script, there is white space inserted between
each of the characters.

I've checked the perldoc FAQ on DOS but can't see where I err.

Any help for a PERL/Win32 novice?

-- 
Tom Bakken
Information Resource Manager
USDA, Rural Development
101 South Main, Suite 102
Temple, TX 76501

Phone: 254-742-9726 Fax: 254-742-9709 
Email: tom.bakken at tx.usda.gov



More information about the Austin mailing list