# # now start to resolve it from the left hand end
# for ($i = 1; $i <= length $sp; ++$i) {
# now start to resolve it from the right hand end
for ($i = length $sp; $i >= 1; --$i) {
my @wout = get(substr($sp, 0, $i));
# # now start to resolve it from the left hand end
# for ($i = 1; $i <= length $sp; ++$i) {
# now start to resolve it from the right hand end
for ($i = length $sp; $i >= 1; --$i) {
my @wout = get(substr($sp, 0, $i));