you need to post the entire script. if there are syntax errors somewhere else outside of the subroutine you're showing us, the script won't run.
as far as running the script with the switches -cW, you open a command prompt and call perl that way, including the switches and the correct full path to where your script resides on your computer. you don't have to have your server or client running to do that. if there are syntax errors in the script in question, it will catch them there.
truthfully, it's going to be worth your while to learn some perl basics outside of scripting for the emulator if you intend to do anything other than minor changes to existing quests.
__________________
I muck about @ The Forge.
say(rand 99>49?'try '.('0x'.join '',map{unpack 'H*',chr rand 256}1..2):'incoherent nonsense')while our $Noport=1;
|