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?? |
$ perl -E'local$/="";while(<>){say"--";my($q,@a)=split/\n/;say$q;say" $_"for@a}' quiz.txt
Enjoy, Have FUN! H.Merijn
In Section
Seekers of Perl Wisdom
|
|