#!/usr/bin/env entity sub good_job { my $node = enode("window.good"); $node->attrib("visible" => "true"); } sub close_window { my $node = enode(@_); $node->attrib("visible" => "false"); } sub update_fixed { $x += 6; $y += 3; my $node = enode("button.test"); $node->attrib("x-fixed" => "$x"); $node->attrib("y-fixed" => "$y"); $x = 2 if ($x > 500); $y = 2 if ($y > 400); }