You've asked a very similar question here before. What didn't you understand about the advice you were given before when looking at this new problem? You still seem to be confusing strings and arrays. Perhaps you should take a little time to read perldata which will explain Perl's different data types.
Cheers,
JohnGG
In reply to Re: coloring patterns of an array
by johngg
in thread coloring patterns of an array
by Tony1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |