Help for this page

Select Code to Download


  1. or download this
    @saw{ qw( a b c ) } = ( 1, 2, 3 );
    
  2. or download this
    ( $saw{a}, $saw{b}, $saw{c} ) = ( 1, 2, 3 );
    
  3. or download this
    $saw{a} = 1;
    $saw{b} = 2;
    $saw{c} = 3;
    
  4. or download this
    my @arr = (4, 1, 6, 4, 3, 7);
    my %saw;
    my @new_arr = grep !$saw{$_}++, @arr;
    print @new_arr;