Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Perl and maths

by pingo (Hermit)
on Feb 15, 2005 at 16:29 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://431248]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-25 13:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found