CVS, Perl and VI

I am trying to write a Perl script to cover a few CVS commands (setup specifically), however the VI screen that pops up and requests a comment, what is the best way of entering the text automatically (will be a variable name) and then saving that cvs notification from my Perl program?

Help is appreciated!

Do you mean the "message" text when you do a checkin?

If so:

cvs ci -m "Your message text' filename

Check the appropriate manpages for more details.

not really, when you do a commit, or import stuff into cvs it opens VI for the version comment. I just want to enter that comment automatically from the script and save, close. does that make sense?