hamidafshar has asked for the wisdom of the Perl Monks concerning the following question:

Hello dear monks, I would really appreciate it if you could suggest a way to me by which I could kind of generate a select option of all the printers that are on the server and then select one of them and print the file straight to it. I know how to do all of what asked apart from the bit that gets a list of printers from the server. Thank you in advance for any helpful stuff ;)

Replies are listed 'Best First'.
Re: Adding a list of printers on server
by bart (Canon) on Sep 20, 2011 at 10:51 UTC
    print the file straight to it
    Does your program generate PCL or Postscript, or whatever other language the printer speaks? If not, you're probably in for a nasty surprise. We're not matrix printer land any more, you have to draw the output for most modern printers. Sending plain text won't do much useful, I would guess. But, I could be wrong.
Re: Adding a list of printers on server
by Anonymous Monk on Sep 20, 2011 at 10:00 UTC
Re: Adding a list of printers on server
by hamidafshar (Novice) on Sep 22, 2011 at 13:56 UTC
    Okay guys, I found the answer to my question. Have a read: http://search.cpan.org/~srpatt/Printer-0.98/lib/Printer.pm