Help for this page

Select Code to Download


  1. or download this
    sub balanced {
        (my $s = shift) =~ s/[^()]//g;
        eval "qw($s); 1"
    }
    
  2. or download this
    sub balanced {
        my $s = shift =~ s/[^()]//rg;
        eval "qw($s); 1"
    }