| 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/
|