diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-12-04 14:25:49 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-12-04 14:25:49 +0000 |
commit | 51d6259470fb1d02503a2c0de2c806026d87c396 (patch) | |
tree | 5c7671b3a9121c099648c82007f8615aaaa022c8 /perl-install/printer/main.pm | |
parent | 823defcb7c1e66a5aafb9d94ca9c7ecef238f12c (diff) | |
download | drakx-51d6259470fb1d02503a2c0de2c806026d87c396.tar drakx-51d6259470fb1d02503a2c0de2c806026d87c396.tar.gz drakx-51d6259470fb1d02503a2c0de2c806026d87c396.tar.bz2 drakx-51d6259470fb1d02503a2c0de2c806026d87c396.tar.xz drakx-51d6259470fb1d02503a2c0de2c806026d87c396.zip |
use if_() where possible (as reported by perl_checker)
Diffstat (limited to 'perl-install/printer/main.pm')
-rw-r--r-- | perl-install/printer/main.pm | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/perl-install/printer/main.pm b/perl-install/printer/main.pm index 757cf35f9..d1b3764d6 100644 --- a/perl-install/printer/main.pm +++ b/perl-install/printer/main.pm @@ -59,15 +59,10 @@ sub spooler { sub printer_type($) { my ($printer) = @_; for ($printer->{SPOOLER}) { - /cups/ && return @printer_type_inv{qw(LOCAL), - qw(LPD SOCKET SMB), - $::expert ? qw(URI) : ()}; - /lpd/ && return @printer_type_inv{qw(LOCAL LPD SOCKET SMB NCP), - $::expert ? qw(POSTPIPE URI) : ()}; - /lprng/ && return @printer_type_inv{qw(LOCAL LPD SOCKET SMB NCP), - $::expert ? qw(POSTPIPE URI) : ()}; - /pdq/ && return @printer_type_inv{qw(LOCAL LPD SOCKET), - $::expert ? qw(URI) : ()}; + /cups/ && return @printer_type_inv{qw(LOCAL), qw(LPD SOCKET SMB), if_($::expert, qw(URI))}; + /lpd/ && return @printer_type_inv{qw(LOCAL LPD SOCKET SMB NCP), if_($::expert, qw(POSTPIPE URI))}; + /lprng/ && return @printer_type_inv{qw(LOCAL LPD SOCKET SMB NCP), if_($::expert, qw(POSTPIPE URI))}; + /pdq/ && return @printer_type_inv{qw(LOCAL LPD SOCKET), if_($::expert, qw(URI))}; } } |