in reply to Some automation on Perlscripts?

If you are using Vim then use the Perl support plugin .
Or otherwise use the Autocommand in the vimrc.
Example
 autocmd bufnewfile *.pl so /home/lakshmanan/Bash/source_for_perl
source_for_perl
:insert #!/usr/bin/perl use strict; .
Now if I open a new *.pl file, then the text in the source_for_perl will be there.

Replies are listed 'Best First'.
Re^2: Some automation on Perlscripts?
by leocharre (Priest) on Dec 08, 2008 at 16:50 UTC
    You are my new hero. This is one of the coolest since moving ranges of lines with
    :21,25m40