hex to ebcdic



hi,
I have a string of hex that represent ebcdic characters. Is there a
way that I can do the following in perl.


hex string = "f1f2d7d9f0"

the result I want = "12PR0"

From looking up a ascii/hex/ebcdic table, I was able to arrive at the
result. ie: f1 => 1, f2 => 2, d7 =>P etc..

Is there a perl function that will do this?
(I don't want to code the entire lookup table if I don't have to).

I am doing this in linux if that matters.

thanks

.



Relevant Pages

  • Re: hex to ebcdic
    ... Gunnar Hjalmarsson schreef: ... hex string = "f1f2d7d9f0" ... Is there a perl function that will do this? ... "Gewoon is een tijger." ...
    (comp.lang.perl.misc)
  • Re: hex to ebcdic
    ... hex string = "f1f2d7d9f0" ... Is there a perl function that will do this? ... See also Encode. ... Gunnar Hjalmarsson ...
    (comp.lang.perl.misc)
  • Re: hex to ebcdic
    ... I have a string of hex that represent ebcdic characters. ... Is there a perl function that will do this? ... Why do you have an ebcdic file on your linux computer? ...
    (comp.lang.perl.misc)