diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-12-03 13:12:13 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-12-03 13:12:13 +0000 |
commit | 23c259c90cbed0280c9e23b3c9763363c148c472 (patch) | |
tree | 608f1f62a585f39703a8f42d83447dfcf045a826 /perl-install/common.pm | |
parent | 5d3903d31de512391136aa05e77de530baceb64a (diff) | |
download | drakx-backup-do-not-use-23c259c90cbed0280c9e23b3c9763363c148c472.tar drakx-backup-do-not-use-23c259c90cbed0280c9e23b3c9763363c148c472.tar.gz drakx-backup-do-not-use-23c259c90cbed0280c9e23b3c9763363c148c472.tar.bz2 drakx-backup-do-not-use-23c259c90cbed0280c9e23b3c9763363c148c472.tar.xz drakx-backup-do-not-use-23c259c90cbed0280c9e23b3c9763363c148c472.zip |
do not use "local my $F, ...", use "local(my $F, ...) instead
Diffstat (limited to 'perl-install/common.pm')
-rw-r--r-- | perl-install/common.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm index dbb954ea3..0e431cbe4 100644 --- a/perl-install/common.pm +++ b/perl-install/common.pm @@ -34,7 +34,7 @@ sub N_ { $_[0] } sub salt { my ($nb) = @_; require devices; - open my $F, devices::make("random") or die "missing random"; + open(my $F, devices::make("random")) or die "missing random"; my $s; read $F, $s, $nb; $s = pack("b8" x $nb, unpack "b6" x $nb, $s); $s =~ tr|\0-\x3f|0-9a-zA-Z./|; @@ -72,7 +72,7 @@ sub availableRamMB() { sub setVirtual { my ($vt_number) = @_; my $vt = ''; - sysopen my $C, "/dev/console", 2 or die "failed to open /dev/console: $!"; + sysopen(my $C, "/dev/console", 2) or die "failed to open /dev/console: $!"; ioctl($C, c::VT_GETSTATE(), $vt) && ioctl($C, c::VT_ACTIVATE(), $vt_number) && ioctl($C, c::VT_WAITACTIVE(), $vt_number) or die "setVirtual failed"; |