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 configuration file has 
>>> an extra line then it to gets printed.
>>>
>>> Something isnt working here.  I am not getting the lines to match an I 
>>> cant seem to figure out why.  I am hoping somebody can shed some light here.
>> It looks OK at first glance, but there could be many different problems,
>> depending on what symptoms you are getting. First of all please
>>
>>   use strict;
>>   use warnings;
>>
>> at the start of your code and declare all of your variables, then show us an
>> example of the live data you have and the output you are getting.
>>
>> Could it be something as simple as not accounting for trailing whitespace on 
>> the
>> records?
>
> I wish I could share the output.
> 
> 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 lines than you think is correct?

Remember that non-printable characters (whitespace for instance) may not match
even though it looks the same: spaces and tab characters for instance.

Rob

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to