Help for this page

Select Code to Download


  1. or download this
    sub blah {
        return '}';
    }
    
  2. or download this
    extract_bracketed($code, '{}') to handle this, but even that will stil
    +l bomb on curlies in comments:
    </p>
    <code>
    ...
        # } is such a neat character
        return '}';
    }
    
  3. or download this
    $code = blockize($code);
    
    ...
            return "{\n    sub $name $block\n}";
        }
    }
    
  4. or download this
    sub blockize {
        my ($code) = @_;
    ...
            return "{\n    sub $name $block\n}";
        }
    }