Help for this page

Select Code to Download


  1. or download this
    my @upChars = getUpperCaseChars( @chars );
    # @upChars is now ( 'A', 'B', 'C', undef, undef, undef, 'F', 'G' )
    
  2. or download this
    my @charsWithNoUpperCase =
        @chars[grep { !defined @upChars[$_] } 0..$#upChars];
    
  3. or download this
    my @charsWithNoUpperCase
    foreach my $index ( 0..$#upChars ) { 
        push @charsWithNoUpperCase, $chars[$index]
            if !defined $upChars[$index];
    }