venkatesan_G02 has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

I am writing a PERL program in which the program has to wait for a user input. But i have a requirement that the program has to execute certain parts of the code until the user keys in an input.

Right now, my program just waits for the input but not executing the code until an input is provided

So, could anyone throw some light on how to solve this issue? Any reference to any PERL Module?

Thanks!!!

Replies are listed 'Best First'.
Re: Writing Interrupt proram in PERL
by Joost (Canon) on Oct 01, 2009 at 10:30 UTC
Re: Writing Interrupt proram in PERL
by venkatesan_G02 (Sexton) on Oct 05, 2009 at 11:12 UTC
    Hi,
    Sorry for late reply

    I tried the following code but it's throwing an error:
    #!C:/Perl/bin/perl.exe use strict; use warnings; use POE; # The base system. use POE::Wheel::ReadLine; # For reading lines from the console.

    Error: MSWin32 cannot run POE::Wheel::ReadLine at C:/Perl/site/lib/POE/Wheel/ReadLine.p m line 17.

    Does this error mean i cannot use POE under windows environment?
        So, is there any work-around for using POE::Wheel::ReadLine under windows environment?