You're using perl to automate vim? That just makes my head hurt. Why not just edit the text using standard perl features? I can only assume that there are some vim packages you have installed that you're trying to take advantage of.
Anyway, if you want to automate vim from a perl script, it appears that Rolf already has you covered.
You could also call your perl script from within vim, if that would help things. For example, I frequently call out to the sort command to sort data in a document while in vim. There's no reason you can't call a perl script to process a section of text.
Or even uglier: you could have your perl script open a document in vim, and then tell it to execute a perl script from within vim. That'll certainly help you keep your job "interesting".
...roboticus
In reply to Re: Piping data to vim
by roboticus
in thread Piping data to vim
by yoda54
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |