in reply to Benchmarking "Are all these characters in this sentence?"
because 0 is false.[ "abxcd zwe rrv", "0", 0 ],
On a more conceptual level, it fails in that the return value of chop on an empty string is not documented. But in practice, this would be the fix:
1+index $s, $c or return 0 while length($c = chop $w);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Benchmarking "Are all these characters in this sentence?"
by RMGir (Prior) on Sep 01, 2008 at 11:23 UTC | |
by BrowserUk (Patriarch) on Sep 01, 2008 at 11:43 UTC | |
by RMGir (Prior) on Sep 01, 2008 at 11:57 UTC | |
by ysth (Canon) on Sep 01, 2008 at 16:49 UTC | |
by RMGir (Prior) on Sep 01, 2008 at 17:14 UTC | |
by BrowserUk (Patriarch) on Sep 01, 2008 at 18:24 UTC | |
by RMGir (Prior) on Sep 01, 2008 at 18:35 UTC | |
|