On Dec 24, 6:58 am, [EMAIL PROTECTED] (Alma) wrote:
> Hi All,
>
> I have got an application which is not a GUI developed in C. I need to
> enter the data from notepad and enter in the place which prompt me for
> the correct data. I am storing in the order in which its prompting.
> can any one provide me the guidence of how to go about. can it be
> acheived using perl.

You may simply be able to run the program with its input fed via a
pipe.

open(my $process, '-|', 'myprogram', 'and','its','arguments') or die
$!;
print $process "$_\n" for @the_input;

I you need more than this then I "Expect" (hint,hint) there's
something on CPAN to help.

See also, the FAQ.


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


Reply via email to