Help for this page

Select Code to Download


  1. or download this
    my ( $last, $two ) = $string =~ m/(\d+),(\d+)$/;
    
  2. or download this
    my @pairs;
    while( $string =~ m/(\d+),(\d+)/g ) {
      push @pairs, [$1,$2];
    }