Re: matching lines like grep

2008-07-09 Thread Gunnar Hjalmarsson
Jay Savage wrote: On Tue, Jul 8, 2008 at 10:52 AM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: Rob Dixon wrote: Noah wrote: @config_file_lines = ; s/\s+$/\n/ foreach @config_file_lines; The newline is only necessary if you perform the substitution only on one set of records. If you also a

Re: matching lines like grep

2008-07-09 Thread Jay Savage
On Sun, Jul 6, 2008 at 6:57 PM, Noah <[EMAIL PROTECTED]> wrote: > Hi there fellow PERL coders. > > I am trying to match lines between a template file and a configuration file. > If the configuration is missing a particular line that is found in the > template file then it is printed. If the confi

Re: matching lines like grep

2008-07-09 Thread Jay Savage
On Tue, Jul 8, 2008 at 10:52 AM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > Rob Dixon wrote: >> >> Noah wrote: >>> >>> Rob Dixon wrote: Then I guess you are processing a file that originated on a Windows system? Windows text files have a sequence at the end of each record,

Re: matching lines like grep

2008-07-08 Thread Rob Dixon
Gunnar Hjalmarsson wrote: > Rob Dixon wrote: >> Noah wrote: >>> Rob Dixon wrote: Then I guess you are processing a file that originated on a Windows system? Windows text files have a sequence at the end of each record, whereas Unix files have just . is control-M, which is wh

Re: matching lines like grep

2008-07-08 Thread Gunnar Hjalmarsson
Rob Dixon wrote: Noah wrote: Rob Dixon wrote: Then I guess you are processing a file that originated on a Windows system? Windows text files have a sequence at the end of each record, whereas Unix files have just . is control-M, which is why vim is showing ^M at the end of the line. What you

Re: matching lines like grep

2008-07-08 Thread Rob Dixon
Noah wrote: > Rob Dixon wrote: >> Noah wrote: >>> Rob Dixon wrote: Noah wrote: > let me put toether some bogus output files. You could just describe your output. Are you getting nothing at all? Or is it showing all lines of both files? Or none from one and all fr

Re: matching lines like grep

2008-07-08 Thread Noah
Rob Dixon wrote: Noah wrote: in line Below let me put toether some bogus output files. You could just describe your output. Are you getting nothing at all? Or is it showing all lines of both files? Or none from one and all from the other? Or just more or fewer lines than you think is correc

Re: matching lines like grep

2008-07-07 Thread John W. Krahn
Noah wrote: Hi there fellow PERL coders. Hello, I am trying to match lines between a template file and a configuration file. If the configuration is missing a particular line that is found in the template file then it is printed. If the configuration file has an extra line then it to gets

Re: matching lines like grep

2008-07-07 Thread Rob Dixon
Noah wrote: > in line Below > >>> let me put toether some bogus output files. >> >> You could just describe your output. Are you getting nothing at all? Or is it >> showing all lines of both files? Or none from one and all from the other? Or >> just more or fewer lines than you think is correct?

Re: matching lines like grep

2008-07-07 Thread Noah
in line Below let me put toether some bogus output files. (Please bottom-post your responses to this group. Thanks.) You could just describe your output. Are you getting nothing at all? Or is it showing all lines of both files? Or none from one and all from the other? Or just more or fewer l

Re: matching lines like grep

2008-07-06 Thread Rob Dixon
Noah wrote: > Rob Dixon wrote: >> Noah wrote: >>> Hi there fellow PERL coders. >>> >>> I am trying to match lines between a template file and a configuration >>> file. If the configuration is missing a particular line that is found >>> in the template file then it is printed. If the configurati

Re: matching lines like grep

2008-07-06 Thread Noah
I wish I could share the output. let me put toether some bogus output files. Cheers, Noah Rob Dixon wrote: Noah wrote: Hi there fellow PERL coders. I am trying to match lines between a template file and a configuration file. If the configuration is missing a particular line that is found

Re: matching lines like grep

2008-07-06 Thread Rob Dixon
Noah wrote: > Hi there fellow PERL coders. > > I am trying to match lines between a template file and a configuration > file. If the configuration is missing a particular line that is found > in the template file then it is printed. If the configuration file has > an extra line then it to get

matching lines like grep

2008-07-06 Thread Noah
Hi there fellow PERL coders. I am trying to match lines between a template file and a configuration file. If the configuration is missing a particular line that is found in the template file then it is printed. If the configuration file has an extra line then it to gets printed. Something