split()ing on null will do this for you:
@array = split //,$var;
-Original Message-
From: Allison Ogle [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 10:59 AM
To: a a
Subject: Assigning the characters of a variable to an array
Hello,
This is a simple question, I'm
Hello,
This is a simple question, I'm sure. Due to lack of resources however I
have to ask...
I want to store each of the letters and numbers in a variable into an array.
For example, $var=A2B3C4D and I want the elements of my array to be A 2 B 3
C 4 D. Can anyone help? Thanks,
Allison
--