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
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