You should be able to do it, by waiting for the return value.
Ex: 
viRetValue=system("Comnnad String"); 
or
viRetValue = `<Comand Stirng>`;

-- 
Regards,
Rathna.

On Sun, 6 Mar 2005 23:07:19 -0800 (PST), Harold Castro
<[EMAIL PROTECTED]> wrote:
> 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/
> 
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
> 
>

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to