You probably want to use a hash for that.
On unix, /usr/X11/lib/X11/rgb.txt is a useful list of standardized named colors with RGB values.my %color = ( red => 0xFF0000, blue => 0x0000FF, # . . . );
After Compline,
Zaxo
In reply to Re: Getting numeric value of a alphabetic string
by Zaxo
in thread Getting numeric value of an alphabetic string
by chakkaln
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |