in reply to Open Vieditor using perl/perl cgi script

vi editor does not run in browser, so, if that is what you have in mind, it won't work :)

if you had something else in mind, what is it?

  • Comment on Re: Open Vieditor using perl/perl cgi script

Replies are listed 'Best First'.
Re^2: Open Vieditor using perl/perl cgi script
by Anonymous Monk on Sep 11, 2014 at 08:27 UTC
    first thanks for your reply. I want to open vi editor separately externally to open a file which is the output of Perl. This file I need to open in vi editor so that user can use the functions of editor to change anything he want to and upload the file back to original one
      What happens if the user doesn't have vi installed on their machine?
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

      So you want something like:

      my $file= "/tmp/file-to-edit"; # Let the user edit the file system("vi $file") == 0 or die "Uhoh: $? / $!"; # Now, reupload the file to the website (however)
        Thank u I got the problem resolved u saved my 1 week time which I thought to spend on this
        yeah but this code is not displaying the full content of the file and how can user edit the changes he want to make.