Help for this page

Select Code to Download


  1. or download this
    my @images;                       # array of filenames
    my %img;                          # hash used temporarily
    $img{$_} = 1 foreach @images;     # stick them in a hash
    @images = keys %img;              # now only unique filenames
    
  2. or download this
    @images = grep { ! $img{$_}++ } @images;