monkeybus has asked for the wisdom of the Perl Monks concerning the following question:
Hello monks,
Suppose I have an array like
$foo[0] = "xy";
$foo[1] = "yx";
How can I read individual letters of each element to ascertain what is is?
i.e., how can I tell if the first letter is x, or y?
Thank you kindly.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reading parts of array elements
by GrandFather (Saint) on Dec 09, 2009 at 06:40 UTC | |
|
Re: Reading parts of array elements
by desemondo (Hermit) on Dec 09, 2009 at 06:36 UTC | |
|
Re: Reading parts of array elements
by Fox (Pilgrim) on Dec 09, 2009 at 10:51 UTC | |
|
Re: Reading parts of array elements
by Anonymous Monk on Dec 09, 2009 at 06:28 UTC | |
|
Re: Reading parts of array elements
by pid (Monk) on Dec 09, 2009 at 07:39 UTC | |
by GrandFather (Saint) on Dec 09, 2009 at 07:52 UTC | |
by pid (Monk) on Dec 09, 2009 at 11:31 UTC | |
|
Re: Reading parts of array elements
by igoryonya (Pilgrim) on Dec 09, 2009 at 14:32 UTC |