in reply to extracting lines from a string - while ignoring the \n character
my @lines = split /\n/, $string;