> > > > 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 tell if a file is ebcdic text ? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>