Dunno about vim, but in emacs it's fairly simple: I've got mode-compile on and then it's just a question of typing C-c c ENTER to run the current perl script, with output to a split buffer and clickable error messages (or press C-x ` to go to the next error).