you should also add that curlies and commas should be minimal as a second criteria.
for instance a , {a} and {{a}} are all equivalent.
best you provide a sub metric
sub cmp_glob($g1,$g2) which returns -1, 0 or 1 like cmp does.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^3: Challenge: Generate a glob patterns from a word list
by LanX
in thread Challenge: Generate a glob patterns from a word list
by choroba
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |