in reply to Pattern Match and Replace Problem

1.assign a default value alike   or ' ' to the fields in your scipt (so they are lets say values in an arry and get overwritten with the content from the from , but only if there is one), so they get a content anyway.
2. shall remove the newlines from $File, but its an expensive way, that seems to be done to process the content of $File like if it was only one long line, probably to find matches over multiple lines
Have a nice day
All decision is left to your taste

Replies are listed 'Best First'.
Re: Re: Pattern Match and Replace Problem
by belize (Deacon) on Apr 27, 2001 at 23:39 UTC
    Sorry, I should of asked why do the new lines have to be removed before doing tha pattern matching?