For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > March 2005 > Returning to my program after exiting vi.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Returning to my program after exiting vi.
Harold Castro

2005-03-07, 3:58 pm

Hi,
I wrote a script with a line,
system('vi ./config.txt');

which when encountered by the perl compiler, pops up
the vi editor and open the config.txt in the current
directory. What if I would just want the user the view
the very long text file, let's say, a list of
something, and his answer to my programs first line of
input is one of those lines contained in config.txt.
When perl launches the vi editor, it simply closes my
program and switch to vi, is it possible not to close
my program when vi launches and after closing (:q!) vi
would then return in my program with a prompt like,

You have just seen the rest of the choices. Enter one
here:


Do you know how it is done?

Thanks!







__________________________________
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web
http://birthday.yahoo.com/netrospective/
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com