in reply to perl script to open vi editor

See Open Vieditor using perl/perl cgi script and forget about it :)