Help for this page

Select Code to Download


  1. or download this
    while (<>) {
            s/\n\n/\n/gs;
            print;
        }
    
  2. 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}
    }