in reply to XUL::Gui and Loop structure
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);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XUL::Gui and Loop structure
by sagus (Initiate) on May 31, 2011 at 15:55 UTC | |
by lancer (Scribe) on May 31, 2011 at 19:14 UTC | |
|
Re^2: XUL::Gui and Loop structure
by Argel (Prior) on May 31, 2011 at 16:47 UTC | |
by Jenda (Abbot) on May 31, 2011 at 18:24 UTC | |
by lancer (Scribe) on May 31, 2011 at 19:40 UTC |