in reply to Re: Re: Re: parsing comments in newline-delimited files as listsin thread parsing comments in newline-delimited files as lists
while (<DATA>) { s/\s*#.*//; push @enabled_lines, /\s*(.+)/; } [download]