summaryrefslogtreecommitdiffstats
path: root/perl-install/ugtk2.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/ugtk2.pm')
-rw-r--r--perl-install/ugtk2.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index 588e9cac0..de786a1a6 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -99,8 +99,7 @@ sub gtkset_line_wrap { $_[0]->set_line_wrap($_[1]); $_[0] }
sub gtkadd {
my $w = shift;
- foreach (@_) {
- my $l = $_;
+ foreach my $l (@_) {
ref $l or $l = Gtk2::Label->new($l);
$w->add(gtkshow($l));
}
@@ -119,8 +118,7 @@ sub gtkadd_widget {
sub gtkappend {
my $w = shift;
- foreach (@_) {
- my $l = $_;
+ foreach my $l (@_) {
ref $l or $l = Gtk2::Label->new($l);
$w->append(gtkshow($l));
}