You might find the :make feature of vim very useful:
You can set makeprg to "perl\ -cw\ %" and use afterwards
:make to check the program. This aproach offers you some
nice features:
- It's easier to type
- You get the error-messages in a special buffer and can
step through it. Read about this feature in
:help quickfix
Another real good feature, btw :)
--
use signature;
signature(" So long\nAlfie");