Help for this page

Select Code to Download


  1. or download this
    my %seen = ();
    for my $i ( 0..$#texts[0] ) {
    ...
        $seen{$texts[$i] = 1;
        ... # do stuff with $texts[$i] and $images[$i]
    }
    
  2. or download this
    my %text_image;
    @text_image{@texts} = @images;
    ...
        my $image = $text_image{$text};
        # do stuff with $text and $image...
    }