Help for this page

Select Code to Download


  1. or download this
    my $currentChar = substr( $string, $n, 1 );
    if( $currentChar eq 'C' ) {
    ...
    else {
       die "The first character didn't match 'C'";    
    }