Nice, this reminds me of a function to test if a number if prime:
sub isPrime { ('1' x $_[0]) !~ /^(11+)\1+$/; }
Ted Young
($$<<$$=>$$<=>$$<=$$>>$$) always returns 1. :-)In reply to Re: fibonacci regex
by TedYoung
in thread fibonacci regex
by mauke
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |