in reply to Re: Best way to validate a string as a color?
in thread Best way to validate a string as a color?

Unfortunately, ANSI terms use different colours than Tk. See rather Color Names at Tcl/Tk wiki, or Tk/demos/widget_lib/colors.pl.

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^3: Best way to validate a string as a color?
by Your Mother (Archbishop) on Oct 17, 2017 at 17:00 UTC

    You misspelled "color." So, close though... :P

    perl -MString::Approx=amatch -le 'print "OK" if amatch("color", "colou +r")' OK

      Yes, I know. However, "color", although incorrect, is the spelling used in Perl.

        Now... I can't tell if you are extending the gag or didn't get it. :P