Help for this page

Select Code to Download


  1. or download this
    $_ = "aaaabbbbcccc";
    if ( not /^(\w\w)(\w\w)(\w\w)$/ ) {
    ...
        }
    }
    print "$_ = $1 $2 $3\n";
    
  2. or download this
    $_ = "aaaabbbbcccc";
    if ( not /^(\w\w)\w\w(\w\w)\w\w(\w\w)\w\w$/ ) {
        die "failed";
    }
    print "$_ = $1 $2 $3\n";