From f29cd86fbd748de5a623bd75b2f8ac320c5ce2b9 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 18 Jan 2008 13:52:00 +0000 Subject: "my $foo if 0" semantic has changed in some cases, using the new "state" keyword instead --- perl-install/install/steps_gtk.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install/install/steps_gtk.pm') diff --git a/perl-install/install/steps_gtk.pm b/perl-install/install/steps_gtk.pm index fd68ee955..98cc80ac0 100644 --- a/perl-install/install/steps_gtk.pm +++ b/perl-install/install/steps_gtk.pm @@ -2,6 +2,7 @@ package install::steps_gtk; # $Id$ use diagnostics; use strict; +use feature 'state'; use vars qw(@ISA); @ISA = qw(install::steps_interactive interactive::gtk); @@ -474,7 +475,7 @@ sub installPackages { local $::noborderWhenEmbedded = 1; my $w = ugtk2->new(N("Installing"), icon => 'banner-sys'); - my $show_advertising if 0; + state $show_advertising; my $pkg_log_widget = gtknew('TextView', editable => 0); my ($advertising_image, $change_time, $i); -- cgit v1.2.1