Must be missing something. Here is simple code and increments the current 
letter the next:

my $x = 'E';
$x++;
my @array = ();

$array[0] = 'G';
$array[0]++;
printf "%-s  %-s\n", $x, $array[0];

Output:
F  H

Wags ;)

-----Original Message-----
From: Allison Ogle [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 09:05
To: a a
Subject: Incrementing the letters in an array


Hi,

I have an array which contains letters.  I need to increment these letters
in the array one at a time.  For example going from B to C.  I was trying
something like

$array[$x]++;

however that increments the letter to the number 1.  Does anyone have any
ideas?  Thanks in advance.

Allison


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to