Re: interpoliation within regexp



On 09/28/2006 12:04 PM, Derek B. Smith wrote:
******************************************
The input data is a 6 character randomized string that
could start with a # such as 6FhJ9Z. If it does start
with a number then I need to convert this character
into its cooresponding alpha char, [a-z,A-Z].

The output data from the string 6FhJ9Z should be
[a-z,A-Z]FhJ9Z I guess what I am asking for is not
plausible after looking at the ASCII table b/c there
is no cooresponding letter for number 6. Silly me, ok
then maybe grab any [a-z,A-Z] character.

my $foo = pack("C*", 6); print $foo;
or
chr ('6');



What is the purpose of this program?


.