Help for this page

Select Code to Download


  1. or download this
    if ((my $answer = <STDIN>) =~ /^yes$/i) {
        user_agrees();
    ...
        chomp $answer;
        die "'$answer' is neither 'yes' nor 'no'";
    }