sub by_priority { (grep$_,map-($a=~/$_/)||$b=~/$_/,qw(ORGANIZATION SERVICE FAQ))[0] or$a cmp$b }
In reply to Re: [perlre/perlgolf] Golf this: return -1 or return +1 on regexp subroutine please
by petral
in thread [perlre/perlgolf] Golf this: return -1 or return +1 on regexp subroutine please
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |