Help for this page

Select Code to Download


  1. or download this
    my $tempstr = $str;
    # get rid of () around status
    $tempstr =~ s/^([^(:]+)\(([^)]+)\)/$1$2/;
    # grab the status and anything in parentheses
    @needed = $tempstr =~ /(^[^:]+|(?<=\()[^)]+(?=\)))/g;
    
  2. or download this
    @needed = $_ =~ /(^[^:]+|(?<=\()[^)]+(?=\)))/g;
    $needed[0] =~ y/()//d;