nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

printing file in perl

This is a discussion on printing file in perl within the Coding in General forums, part of the Development/Scripting category; Hi i am new in perl. i want to print file in perl.plz tell me how can i do that. ...


Go Back   nixCraft Linux Forum > Development/Scripting > Coding in General

Linux answers from nixCraft.


Coding in General Discussion on PHP/Perl/Python/Ruby/GNU C or C++. MySQL, PgSQL and (X)HTML or any other programming languages you want.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-03-2008, 10:44 AM
Member
User
 
Join Date: Feb 2008
OS: fedora
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
chandanperl is on a distinguished road
Default printing file in perl

Hi
i am new in perl. i want to print file in perl.plz tell me how can i do that.
thank you
Reply With Quote
  #2 (permalink)  
Old 17-03-2008, 11:03 AM
agn agn is offline
Member
User
 
Join Date: Feb 2008
OS: OpenBSD/FreeBSD/Debian/Fedora/RHEL
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 3
agn is on a distinguished road
Default

Print as in printing a hard copy onto a paper ? Or printing to stdout/monitor ?
Reply With Quote
  #3 (permalink)  
Old 09-04-2008, 12:15 PM
Member
User
 
Join Date: Feb 2008
OS: fedora
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
chandanperl is on a distinguished road
Default file print on printer

Hi
i want to print a file on printer.
Reply With Quote
  #4 (permalink)  
Old 16-04-2008, 11:03 AM
agn agn is offline
Member
User
 
Join Date: Feb 2008
OS: OpenBSD/FreeBSD/Debian/Fedora/RHEL
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 3
agn is on a distinguished road
Default

Maybe something like
Code:
open(PRN, "|lp");
print PRN "hello";
That should work for a local printer. Also check out Net::Printer (http://search.cpan.org/~cfuhrman/Net-Printer-1.04/lib/Net/Printer.pm).
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
perl scripting pansarevai Coding in General 2 17-03-2008 05:34 PM
Cups is not printing text file with proper format, staircasing issue Ashish Pathak CentOS / RHEL / Fedora 1 18-11-2007 08:12 AM
Linux java apps: printing mike herdman Linux software 7 15-01-2007 01:06 PM
Need help with printing arrary in Ksh avcert1998 Shell scripting 4 18-08-2005 05:42 PM
few quick perl questions raj All about FreeBSD/OpenBSD/NetBSD 1 30-06-2005 12:27 AM


All times are GMT +5.5. The time now is 11:19 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38