in reply to Iterating over objects
my @data = ( [ $frame1 => {-text => $hello_string, width => 7} ], [ $frame2 => {-text => $silly_string, width => 9} ], [ $frame3 => {-text => "XXXXX", width => 35} ], [ $frame4 => {-text => $silly_string, width => 7} ], ); for my $set (@data) { my ($frame, $settings) = @$set; $frame->Label( %$settings, # I'm pretty sure you want %$settings -expand => 1, # not just $settings... )->pack();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Iterating over objects
by Fuzzy Frog (Sexton) on May 19, 2004 at 03:10 UTC |