Help for this page

Select Code to Download


  1. or download this
      my ($pos, $first ) = ( pos $string, $1 ) if $string =~ m/([\[\{\]\},
    +])/g;
      return unless defined $pos;
    
  2. or download this
      $string =~ m/([\Q[]{},\E])/ or return;
      my($pos, $first) = ($+[0], $1);