$val = `kdialog --title "Question" --inputbox "What is $a x $b?"`; if ($val == $correct) { system("kdialog --msgbox 'Correct!'"); } else { system("kdialog --msgbox 'Wrong!'"); }
In reply to Re: Perl and maths
by pingo
in thread Perl and maths
by ReinhardE
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |