Ok, me again...
Line 778 reads:
} elsif ($cmd eq 'repeat' || $cmd eq 'vangqa') {
This should be:
} elsif ($cmd eq 'repeat' || $cmd eq "vangqa'") {
Since the ' is part of the word.
Ok, I think thats it for now... my program runs now.
qurgh