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? Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/