In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Nntp.Perl.Org) writes:
>Hi
>
>How do I check whether a file is in ebcdic or ascii format ?
It rather depends on what you mean by 'ASCII'. If you were referring
to strict ASCII, the 8th bit would be clear and so, assuming you are
talking about te
> > Hi
> >
> > How do I check whether a file is in ebcdic or ascii format ?
> >
> > Thanks,
> > Nitish
> >
> >
> perldoc -f -x
>
> That tells me how to find if a file is ascii text
>
> if(-T $file) {
>print "$file is an ascii text file \n";
> } else {
> print "Not an ascii text file \n";
>
> >
> > How do I check whether a file is in ebcdic or ascii format ?
> >
> > Thanks,
> > Nitish
> >
> >
> perldoc -f -x
>
> That tells me how to find if a file is ascii text
>
> if(-T $file) {
>print "$file is an ascii text file \n";
> } else {
> print "Not an ascii text file \n";
> }
is t
Nntp.Perl.Org wrote:
Hi
How do I check whether a file is in ebcdic or ascii format ?
Thanks,
Nitish
perldoc -f -x
That tells me how to find if a file is ascii text
if(-T $file) {
print "$file is an ascii text file \n";
} else {
print "Not an ascii text file \n";
}
--
To unsubscribe, e-m