Help for this page

Select Code to Download


  1. or download this
    my $text = '0101010101';
    my %hash;
    @hash{ split '', $text } = 1;
    print scalar keys %hash, "\n";
    
  2. or download this
    @hash{@array} = $scalar
    
  3. or download this
    @hash{@array} = ($scalar) x scalar @array;
    
  4. or download this
    @hash{@array} = ();