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

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

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

Replies are listed 'Best First'.
Re^4: Best way to validate a string as a color?
by LanX (Saint) on Oct 17, 2017 at 17:51 UTC
Re^4: Best way to validate a string as a color?
by pra (Initiate) on Oct 18, 2017 at 11:07 UTC

    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

        Got it, but decided to take it seriously anyway!