in reply to extracting lines from a string - while ignoring the \n character

I'm not sure I understand what you're trying to do. Shouldn't it be this simple?

my @lines = split /\n/, $string;

  • Comment on Re: extracting lines from a string - while ignoring the \n character
  • Download Code