RosettaCodeData/Task/Simple-windowed-application/Perl/simple-windowed-application-3.pl
Ingy döt Net 68f8f3e56b all tasks
2013-04-11 01:07:29 -07:00

7 lines
180 B
Perl

use XUL::Gui;
display
TextBox( id=>'txt', value=>'there have been no clicks yet' ),
Button( label=>'click me', oncommand=>sub{
$ID{txt}->value = ++$clicks
});