Help for this page

Select Code to Download


  1. or download this
    use Data::Dumper;
    my @array = ( 0, 1, 2, 3, 4, 5 );
    ...
    
    print Dumper \%uniq;
    
  2. or download this
    $VAR1 = {
              '4' => undef,
    ...
              '2' => undef,
              '5' => undef
            };
    
  3. or download this
    use Data::Dumper;
    my %uniq;
    ...
    @uniq{ @aoa[ 1 ... $#aoa ]->[-1] } = ();
    print Dumper \%uniq;
    
  4. or download this
    $VAR1 = {
              '5' => undef
            };