Check Your Script's Syntax With -c

perl -c script.pl
perl -Mstrict -w -c script.pl
map <F4> <Esc>:make<C-M>
setlocal makeprg=perl\ -Mstrict\ -w\ -c\ %