My Perl script is generating an excel sheet.
Output
P MON #N/A XML xx ## c 2 Yes
B TUE #N/A TXT xx ## b 1 No
D SUN #N/A EXE xx ## a 1 No
I want the excel sheet’s column to be highlighted in different colours
I followed this site
But I am not getting any idea to set different colours for different columns using Perl .
You need to use the
set_column()method with a format object that has thebg_colorset. Here is a small working example.Which gives you output like this: