My first useful Perl script

technology

I was thinking the other day that it would be useful to have something to convert decimal values for RGB colours into hexadecimal values, and vice-versa. Of course, you can input either value in Photoshop, but sometimes when I'm writing a stylesheet, I would just like to be able to do a quick conversion. And--yes--I could probably do it in my head, but that would be Actual Thought, and I use a computer to minimize the amount of that kind of thing I have to do. Then I had a minor brainwave; I (sort of) know some Perl, so why not write my own tool? I've just finished it, and I'm proud out of all proportion to the actual functionality. It's got funky Unix-style command line switches, a @-help@ command line option and everything!

Metaphorically, it's a painting of a wobbly house with smoke coming from the chimney, and a big yellow sun. Across the top, there's a crayoned title: "mY fuRst PerL skriPt". It's all mine, and it actually works.

comments powered by Disqus