Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Re: Vim for Perl developers

by naChoZ (Curate)
on Jun 06, 2003 at 18:47 UTC ( [id://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

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?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-03-29 07:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found