There's more than one way to do things | |
PerlMonks |
Re: Re: Golf challange: match U.S. State namesby MeowChow (Vicar) |
on Jun 06, 2001 at 07:56 UTC ( [id://86111]=note: print w/replies, xml ) | Need Help?? |
This has two problems: on a non-match, index will return -1, which, ANDed with 1, returns 1, so virtually any string will match. This sub will also match strings like "ALC" or just "A".
MeowChow s aamecha.s a..a\u$&owag.print
In Section
Meditations
|
|