Printing a text file

2001-12-11 Thread Ben Crane
Hi list, Does anyone know how to print out a text file to a printer? i would like the option of chosing a printer to send the document to, in addition, will I need to reformat the text, or will it print out the text file as is? Thanx Ben __ Do

Re: Printing a text file

2001-12-11 Thread Andrea Holstein
Ben Crane wrote: Hi list, Does anyone know how to print out a text file to a printer? i would like the option of chosing a printer to send the document to, in addition, will I need to reformat the text, or will it print out the text file as is? Have searched in search.cpan.org for

Searching and printing a text file

2001-06-19 Thread SAWMaster
Hi group! Ok, I'm trying to open all files in the directory containing my script, and search each one for lines containing my search string. This is my code so far: $i = 0; opendir(logdir, '.') or die Can't open directory.; print Enter string to search for: ; $searchstring = ; print \n; #print

Re: Searching and printing a text file

2001-06-19 Thread Me
while(logfile) { #if(#line I'm currently on is m/$searchstring/i) { print; } Now the problem is, how do I specify The line I'm currently working on? That's easy -- you don't. When you said: print; you didn't specify what to

Re: Searching and printing a text file

2001-06-19 Thread SAWMaster
Ok, I think I understand you, but things still are not working right. Never mind, I forgot to chop my search string. Works great now :) TDH (That DID help) lol.