in reply to Using module Imager, how to convert scalar-color value to hex/rgba color value?

Use the rgba method to get the individual values and printf to format them in hex:

printf "%02x%02x%02x%02x\n", $colors[0]->rgba;

To output the whole array:

printf "%02x%02x%02x%02x\n", $_->rgba for @colors;

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice.
/div