Help for this page

Select Code to Download


  1. or download this
    my @unique = uniq @$points;
    
  2. or download this
    my %seen;
    @unique = grep { ! $seen{join(q{,}, @$_)}++ } @$points;
    
  3. or download this
    $ perl -Mstrict -Mwarnings -e '
    my ($points, %seen, @unique);
    ...
    1338020459 33.514211388 9.144140110 16.479736
    1338020479 33.514125557 9.145019875 14.557007
    1338020484 33.514104099 9.145234451 14.557007
    
  4. or download this
    foreach (@$points) {
      print " $_->[3] $_->[0] $_->[1] $_->[2] \n";
    }
    
  5. or download this
    print " @{$_}[3,0,1,2] \n" for @$points;