Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: How could I create a command line quiz?

by Tux (Canon)
on Mar 10, 2020 at 16:01 UTC ( [id://11114082]=note: print w/replies, xml ) Need Help??


in reply to How could I create a command line quiz?

 $ perl -E'local$/="";while(<>){say"--";my($q,@a)=split/\n/;say$q;say" $_"for@a}' quiz.txt

Enjoy, Have FUN! H.Merijn

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-19 12:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found