Ask a Question related to PERL Beginners, Design and Development.
-
Nntp.Perl.Org #1
check whether file is ascii or ebcdic
Hi
How do I check whether a file is in ebcdic or ascii format ?
Thanks,
Nitish
Nntp.Perl.Org Guest
-
Remove ascii code from a certain position in file
I'm very familiar with the tr command and use it a lot when removing certain characters from files, but my situation today is involving needing to... -
is this whole file EBCDIC?
is this whole file EBCDIC? Or just the text part.? Thanks Record length is 114 Field between columns 10 and 14 is a packed-decimal number... -
How do I make AI file print as ASCII?
Some of my Illustrator files print fine while other print out as garbage text. In Quark I can change the file type from Binary to ASCII. Can this be... -
ASCII and EBCDIC Tablespaces and performance on z/OS
We have to maintain the same collating sequence between an oracle database on NT and a db2 on z/OS. FOr this, we are planning to use an ascii... -
How to connect to ASCII database file via ADODB?
How to connect to ASCII database file via ADODB? Hello, I have received an ASCII database file. I would like to connect & read the ASCII file... -
Ramprasad A Padmanabhan #2
Re: check whether file is ascii or ebcdic
Nntp.Perl.Org wrote:
perldoc -f -x> Hi
>
> How do I check whether a file is in ebcdic or ascii format ?
>
> Thanks,
> Nitish
>
>
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";
}
Ramprasad A Padmanabhan Guest
-
Nntp.Perl.Org #3
Re: check whether file is ascii or ebcdic
> >
is there any way to tell if a file is ebcdic text ?> perldoc -f -x> > How do I check whether a file is in ebcdic or ascii format ?
> >
> > Thanks,
> > Nitish
> >
> >
>
> 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";
> }
Nntp.Perl.Org Guest
-
Nntp.Perl.Org #4
Re: check whether file is ascii or ebcdic
> > Hi
Is there any way to explicitly check if a file is EBCDIC ?> perldoc -f -x> >
> > How do I check whether a file is in ebcdic or ascii format ?
> >
> > Thanks,
> > Nitish
> >
> >
>
> 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";
> }
>
Nntp.Perl.Org Guest



Reply With Quote

