Help for this page

Select Code to Download


  1. or download this
    THIS IS OUTSIDE (THIS IS INSIDE)
    (inside) outside
    ...
    This one has () an empty pair
    This opens (with one)) and double closes
    this is the last (really) one
    
  2. or download this
    #!perl
    use strict;
    ...
        y/ / /s, s/^\s|\s$// if $cleanup;
        say;
    }
    
  3. or download this
    THIS IS OUTSIDE
    outside
    ...
    This one has an empty pair
    This opens and double closes
    this is the last one
    
  4. or download this
    #!perl
    use strict;
    ...
        }
        say $str;
    }
    
  5. or download this
    THIS IS OUTSIDE
     outside
    ...
    This one has  an empty pair
    This opens
    this is the last  one
    
  6. or download this
    #!perl
    use strict;
    ...
        my $extract = join '|', map { "\Q$_\E" } ( $str =~ m/(\(+.*?\)+)/g
    + );
        say join '', split /$extract/, $str;
    }
    
  7. or download this
    #!perl
    use strict;
    ...
        warn "WARNING: Unclosed parenthetical on line $.\n" if $inside;
        say $str;
    }
    
  8. or download this
    THIS IS OUTSIDE
     outside
    ...
    WARNING: extra close on line 9
    This opens ) and double closes
    this is the last  one