diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-11-11 13:40:09 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-11-11 13:40:09 +0000 |
commit | 2db19d156087ccce3037b2bd2da1042280e17904 (patch) | |
tree | 0acaff93899445e13d78facbd0aa0da28558a04f /perl-install/detect_devices.pm | |
parent | c1e398be894ecce6394bd76c99b76c022979ac62 (diff) | |
download | drakx-2db19d156087ccce3037b2bd2da1042280e17904.tar drakx-2db19d156087ccce3037b2bd2da1042280e17904.tar.gz drakx-2db19d156087ccce3037b2bd2da1042280e17904.tar.bz2 drakx-2db19d156087ccce3037b2bd2da1042280e17904.tar.xz drakx-2db19d156087ccce3037b2bd2da1042280e17904.zip |
- do not use "foreach $var (...) {...}" use "foreach my $var (...) {...}" instead
(only pb are functions called in {...} that could use $var, none found except in commands.pm)
- various small syntax enhancements to please perl_checker
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r-- | perl-install/detect_devices.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index ce7ceab7e..ca4bc3240 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -609,9 +609,8 @@ sub whatUsbport() { # This routine based on an ioctl request gives very clean and correct # manufacturer and model names, so that they are easily matched to the # printer entries in the Foomatic database - my $i; my @res; - foreach $i (0..15) { + foreach my $i (0..15) { my $port = "/dev/usb/lp$i"; my $realport = devices::make($port); next if !$realport; |