Not sure I understand your question
(also you didn't specify your target OS and printing system)
, but I find the KDE
kprinter
program handy. It pops up a dialog where you can choose from different
printers / printing systems etc. Just run it instead of LPR (one tip:
use
kprinter --stdin if you want to send data by piping instead
of temporary files as arguments).
Unix: you can always parse /etc/printcap (the Printer module may do it for you, the docs says it does have a list_printers method)
Windows: One quick search on CPAN yields Win32::Printer::Enum, a module that
enumerates Windows printers, though I can't recommend it because I never used it.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.