Try this:
buk => sub { my( $s, $w ) = @_; 1+index $s, $_ or return while $_ = chop $w; 1; },
In a cursory test it seems to be about twice as fast as the best of tye's in all cases.
In reply to Re: Benchmarking "Are all these characters in this sentence?" (quickest yet?)
by BrowserUk
in thread Benchmarking "Are all these characters in this sentence?"
by RMGir
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |