NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Image regex (Score:1)
So going from the red starting pixel, to the green ending pixel travelling only on the white paths:
print "yay" if ($image =~ /\N{red}\N{white}*\N{green}/);That would totally rule! I don't think mapping an image to a string would quite be feasible if you allowed adjacent pixels though... unless the string was lazily generated or something... wow - crazy thought!
Reply to This
Re:Image regex (Score:1)