Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: How could I create a command line quiz?

by Anonymous Monk
on Mar 10, 2020 at 22:31 UTC ( #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? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2022-05-22 12:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (80 votes). Check out past polls.

    Notices?