Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: How could I create a command line quiz?

by Anonymous Monk
on Mar 10, 2020 at 22:31 UTC ( [id://11114107]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    StartQuiz( $quizfile, $userfile );
    ...
    ...
              SaveAnswer( $userfile, $question, $answer );
        }
    }
    
  2. or download this
    my $answer = single_choice(
            text    => "If a=1, b=2. What is a+b?",
    ...
                    [ E => "Fish" ],
            ],
    );
    
  3. or download this
    if ($ask->question(text => "Are you happy?")
    and $ask->question(text => "Do you know it?")
    and $ask->question(text => "Really want to show it?")) {
            $ask->info(text => "Then clap your hands!");
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11114107]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-20 06:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found