Help for this page

Select Code to Download


  1. or download this
    ## Either
    substr( $x, 0, index( $x, $char ), '');
    ## or
    $x =~ s[(^/*$char)][];
    
  2. or download this
    for my $char ( unpack '(A1)*', substr $x, 0, 100, '' ) {
        ##
    }
    
  3. or download this
    use strict;
    use warnings;
    ...
    }
    
    cmpthese(-3, \%tests);