Re: Using hex.

2003-08-21 Thread zsdc
Rich Parker wrote: Thanks guys, This is what I was looking for, more of those undocumented way to do things. But with the way programmers "Do things" do you find there is a "Standard" generally when it comes to dealing with hex variables/characters?? I don't know what you mean by standard. Just

Re: Using hex.

2003-08-21 Thread Rich Parker
Thanks guys, This is what I was looking for, more of those undocumented way to do things. But with the way programmers "Do things" do you find there is a "Standard" generally when it comes to dealing with hex variables/characters?? Thanks. zsdc wrote: Rich Parker wrote: $loc = index($rec, $H

Re: Using hex.

2003-08-20 Thread zsdc
Rich Parker wrote: $loc = index($rec, $HexValue); OR @sub_field1 = split(/$HexValue/, $rec); Where the $HexValue is either a variable that contains my hex'01' or the absolute value itself. The chr function returns the character with a given ASCII (or Unicode) value and you can use \x01 inside o

Re: Using hex.

2003-08-20 Thread John W. Krahn
Rich Parker wrote: > > Howdy, Hello, > I use many different languages here at work, from Assembly, Rexx, to > other mainframe languages. One thing I find it difficult to do with Perl > is the handling of Hex characters. This may seem like a very generalized > question, forgive me for trying to f

Using hex.

2003-08-20 Thread Rich Parker
Howdy, I use many different languages here at work, from Assembly, Rexx, to other mainframe languages. One thing I find it difficult to do with Perl is the handling of Hex characters. This may seem like a very generalized question, forgive me for trying to find a "Better way to do it". Picture