Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Perl and maths

by pingo (Hermit)
on Feb 15, 2005 at 16:29 UTC ( #431248=note: print w/replies, xml ) Need Help??


in reply to Perl and maths

If you use KDE and can live with a really (really) basic interface, you could try using kdialog (I assume there is something similar for Gnome).
$val = `kdialog --title "Question" --inputbox "What is $a x $b?"`; if ($val == $correct) { system("kdialog --msgbox 'Correct!'"); } else { system("kdialog --msgbox 'Wrong!'"); }

I've used it for a math quiz thingy which was fairly successful. :-)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2020-11-28 22:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?