Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Vim for Perl developers

by naChoZ (Curate)
on Jun 06, 2003 at 18:47 UTC ( #263817=note: print w/ replies, xml ) Need Help??


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


Comment on Re: Re: Vim for Perl developers
Download Code
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?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://263817]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2014-07-26 05:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls