I am actually trying to change the color index for the first word with braces in an array so they show up in the right color in Word 2003.
For example, if I have an array like this:
@array="
(This) is (perl),
perl is a great (language),
we can do anything with perl,
(perl) feels us great."
I need the colour of the first word that is inside the parentheses ()
, i.e. (This)
and (perl)
including ()
to be in red and rest of the contents in black. and print the entire contents of the array in MS Word 2003:
I'm using Win32::OLE and Windows XP. This array is just an example the contents of an array will change but first word with braces has to be printed in red.