Limbic~Region,
well, it was never meant to scale ;-)
I've updated my post. Running it with 'ivanova' as argument now yields
real 0m0.067s
user 0m0.051s
sys 0m0.003s
on average.
--shmem | [reply] [d/l] |
shmem,
Much better - but it helped me find another bug in your code.
$perl shmem.pl hello
found: prefix(haughtiness humanoid ... hello
prefix(hello, hello) ne 'h' for a number of reasons. First, they have more in common then h. Second, it would consume the entire word - both of which are against the rules.
| [reply] [d/l] |
No, Sir.
It is not prefix(hello, hello), but prefix(haughtiness, hello) etc. haughtiness, humanoid and hello have the prefix 'h' in common, and the 'ello' is provided by the words output in the suffix section. Run the prefix() sub passing it (qw(hello hello)) and you will get no return value.
So (humanoid hello, haughtiness, cello) is a valid tuple. The presence of 'hello' in the prefix section is an artifact of the implementation... er, bug ;-)
--shmem
| [reply] [d/l] [select] |