why not just do
string $myArray = `ls "chr:*"`;
for($a in $myArray)
{
print ("a: " + $a + \n");
//do whatever you want here
}
I'd be carefull using ":" in names though as they are used for namespaces.
A
Technical Director - Framestore
Currently working on: Your Highness
IMDB