Re: help:about file format

2003-01-20 Thread billy
thanks very much. - Original Message - From: "John W. Krahn" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 21, 2003 10:11 AM Subject: Re: help:about file format > Billy wrote: > > > > how to judge a file in dos form

Re: help:about file format

2003-01-20 Thread John W. Krahn
Billy wrote: > > how to judge a file in dos format or in unix format? > thanks for your response. Here is a somewhat simple program that will work with most files. :-) #!/usr/bin/perl use warnings; use strict; open my $fh, $ARGV[0] or die "Cannot open $ARGV[0]: $!"; my $contents = do { local