in reply to response in LWP::UserAgent

Your program ends with printing the prompt line. You nead to read a response from the user and then do what you wish with the result.

$|=1; print "Choose a date and enter it on the command line: "; my $user_response; until ($user_response = <STDIN>){}; # do something with $user_response

After Compline,
Zaxo

Update: improved it with autoflush, until and diamond

Replies are listed 'Best First'.
Re: Re: response in LWP::UserAgent
by Anonymous Monk on Jul 27, 2001 at 00:51 UTC
    I know I need to read the STDIN, but I can't get the program to wait. It just instantly returns the prompt.
Re: Re: response in LWP::UserAgent
by Anonymous Monk on Jul 27, 2001 at 01:09 UTC
    Problem solved. Many thanks for the suggestion.