Try this:
#!/usr/bin/perl use XUL::Gui; $moreThanOne=5; sub build_list { my $howmany = shift; my @list = (); for(my $i = 0, $imax = $howmany; $i <= $imax; $i++) { push @list, Label (value=>$i); } return @list; } @pacientes = build_list $moreThanOne; display Window title => "Pacientes", width => 640, height => 480, Grou +pBox (@pacientes);
In reply to Re: XUL::Gui and Loop structure
by lancer
in thread XUL::Gui and Loop structure
by sagus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |