Help for this page

Select Code to Download


  1. or download this
    # code 1
    $str = "abc";
    ...
    print $1 if $str =~ ?(.)?g;
    print $1 if $str =~ ?(.)?g;
    print $1 if $str =~ ?(.)?g;
    
  2. or download this
    $str = "abc";
    for (1, 2, 3) {
      $str =~ ?(.)?g;
      print $1;
    }
    
  3. or download this
    $str = "abc";
    {
    ...
        print $_1;
      }
    }