Help for this page

Select Code to Download


  1. or download this
    my @array_of_test_names = (
        "History--abcdef",
    ...
        "History--123",
        "History--1X",
    );
    
  2. or download this
    my $mask = '';
    $mask ^= $_ ^ $array_of_test_names[0] for @array_of_test_names;
    $mask =~ m[^(\0+)] and $len = length( $1 );
    print substr $array_of_test_names[ 0 ], 0, $len;
    print "\n";
    
  3. or download this
    my $res = '';
    for my $i ( 0 .. (length($array_of_test_names[0]) -1)) {
    ...
        $res .= $letter;
    };
    print $res,"\n";