Help for this page

Select Code to Download


  1. or download this
    while ( $mystring =~ /(regexp)/g ) {
        do_something_with($1);
    }
    
  2. or download this
    if ( my( @matches ) = $mystring =~ m/(regexp)/g ) {
        do_something_with( @matches );
    }