> > 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";
> }
>

Is there any way to explicitly check if a file is EBCDIC ?



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to