Help for this page

Select Code to Download


  1. or download this
    my $file = do { local $/; <> };
    1 while $file =~ s/^([ ]{4}[^\n]+)\n[ ]{4}/$1/m;
    print($file);
    
  2. or download this
    my $file = do { local $/; <> };
    1 while $file =~ s/^(([ ]+)(?![ ])[^\n]+)\n\2(?![ ])/$1/m;
    print($file);