Re: Match pattern and print next line

2002-11-23 Thread Joshua Kaufman
How unfortunate for me ;-) -- josh On 11/23/02 2:17 PM, "Paul Johnson" <[EMAIL PROTECTED]> wrote: > On Sat, Nov 23, 2002 at 02:05:58PM -0600, Joshua Kaufman wrote: > >> Thanks for the reply. >> >> That would work in this context, but I'm looking f

Re: Match pattern and print next line

2002-11-23 Thread Joshua Kaufman
> You could always say again inside your if to print the next line. > Realize that you will not then be able to check that line for the > string, but if that is ok which it sounds like it is then it should > work. See below. > > Joshua Kaufman wrote: >> Hi All; >> &

Re: Match pattern and print next line

2002-11-23 Thread Joshua Kaufman
n" <[EMAIL PROTECTED]> wrote: > Use truncate() to hop to a 2nd line. The pattern match wil do. > > > > Sincerly, > Bob Erinkveld > (Webmaster Insane Hosts) > www.insane-hosts.net > > > > > >> From: Joshua Kaufman <[EMAIL PROTECTED]>

Match pattern and print next line

2002-11-23 Thread Joshua Kaufman
Hi All; I'm trying to match a pattern in a text file and then print out the next line in that file. I could swear that I've done this before by incrementing $. to move to the next line. However, the code below is printing out the matched line rather than the next line. #!/usr/bin/perl open (LO

Filtering PDF as text stream

2002-02-21 Thread Joshua Kaufman
Hi all- I'd like to be able to filter text in a large number of PDF files, ideally opening the pdf, filtering the text and then saving the stream back again as a pdf. Can anyone point me towards an easy way to do this? Preliminary research on CPAN showed a large number of modules that deal w