http://qs321.pair.com?node_id=263817


in reply to Re: Vim for Perl developers
in thread Vim for Perl developers

I wonder if you would find this useful. In .vimrc put:

au BufWritePost *.pl,*.pm !perl -c %

Every time you save a .pl or .pm file, it executes perl -c and shows you the output.

~~
naChoZ

Replies are listed 'Best First'.
Re^3: Vim for Perl developers
by dragonchild (Archbishop) on Oct 07, 2008 at 18:34 UTC
    Better would probably be something like:
    au BufWritePost *.pl,*.pm !perl -wcIlib %
    Warnings are important. -Ilib is probably also important, but maybe only I do editing in the root directory of my projects.

    My criteria for good software:
    1. Does it work?
    2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?