at a quick glance, it looks like you're doing everything correctly. here something to try though, which may or may not help you.
With my particular version of perl, no script i wrote would work unless I ended the file with a few extra blank lines. i.e. hitting enter twice after the comment line describing the NPC. If I deleted those two lines it stopped working altogether - but never threw an error. Parhaps it has something to do with the differences between *nix and MS newline characters and carrige returns? <shrug>
-nattini
|