Help for this page

Select Code to Download


  1. or download this
    while (<>) {
    next if $_ =~ m/\n{1}/;
    if ($_ =~ m/\n{2}){s/\n{2}/\n/gs}
    elsif ($_ =~ m/\n{3,}){s/\n{3,}/\n\s/gs}
    }
    
  2. or download this
    while (<>) {
         if ($_ =~ m/\n{1}/) {
    ...
              print;
         }
    }
    
  3. or download this
    while (<>) {
         if ($_ =~ m/\S\n{2}\S/){
    ...
              print;
         }
    }