Strav's blog


  • Front Page
  • Categories
  • Archives
  • Latest comments
  • Log in
« How to set up bash completion for command argumentsUNIX find for finding file names NOT ending in specific extensions »

How to process a multiline string line at a time

foreach (split(/\n/, $str)) {
  if (/START/../END/) {
    next if /START/ || /END/;
    print;
  }
}

Link: http://stackoverflow.com/questions/6111587/how-to-process-a-multiline-string-line-at-a-time

No feedback yet

  Comment feed for this post


This collection ©2026 by admin | Contact | Help | Design by Michael Heilemann | framework