diff options
Diffstat (limited to 'perl-install/printer.pm')
-rw-r--r-- | perl-install/printer.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/perl-install/printer.pm b/perl-install/printer.pm index ab3464b9a..69a8db954 100644 --- a/perl-install/printer.pm +++ b/perl-install/printer.pm @@ -702,11 +702,13 @@ sub restart_queue($) { run_program::rooted($prefix, "lpd"); sleep 1; } -sub print_pages($$@) { +sub print_pages($@) { my ($queue, @pages) = @_; require run_program; - run_program::rooted($prefix, "lpr", "-P$queue", $_) foreach @pages; + foreach (@pages) { + run_program::rooted($prefix, "lpr", "-P$queue", $_); + } sleep 5; #- allow lpr to send pages. local *F; |