go ahead... be a heretic | |
PerlMonks |
Autoflushing Laser printerby Popcorn Dave (Abbot) |
on Nov 16, 2004 at 01:22 UTC ( [id://408014]=perlquestion: print w/replies, xml ) | Need Help?? |
Popcorn Dave has asked for the wisdom of the Perl Monks concerning the following question:
Fellow monks,
I'm trying to send output to my laser printer. All well and good except I can't get it to actually eject the page. What happens is that the text is sent, and the light is flashing on the laser printer showing there is a page waiting to be ejected and that's it. If I physically push the button to eject the page, it will give me the page. I've tried setting autoflush but it's not working. Here's what I was playing with:
Neither $++ or use FileHandle seems to be doing the trick. Should I be sending an eject code instead of or in addition to autoflush? Thanks in advance! Update: Adding .chr(12) to the string $text kicks the page out like I was after. Thanks to ikegami for pointing out my output file error.
Useless trivia: In the 2004 Las Vegas phone book there are approximately 28 pages of ads for massage, but almost 200 for lawyers.
Back to
Seekers of Perl Wisdom
|
|