We don't bite newbies here... much | |
PerlMonks |
Re: Piping data to vimby roboticus (Chancellor) |
on Nov 19, 2010 at 03:53 UTC ( [id://872415]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|