Help for this page

Select Code to Download


  1. or download this
    my $a;
    $a = ( 1, 2, 3 );
    
  2. or download this
    my ( $a, $b, $c ) = 1;
    
  3. or download this
    my ( $a, $b, $c );
    ($a, $b, $c) = (1, 2, 3);
    ($a, $b, $c) = 1;
    
  4. or download this
    my ( $a, $b, $c ) = (1, 1, 1);
    ( $a, $b, $c ) += 1;
    
  5. or download this
    my ( $a, $b, $c ) = ( 1, 1, 1 );
    ($a, $b, $c)++;
    
  6. or download this
    my %hash = ('a'=>1, 'b'=>1, 'c'=>1);
    @hash{'a'..'c'} = 2;
    
  7. or download this
    my %hash = ( 'a'=>1, 'b'=>1, 'c'=>1 );
    @hash{'a'..'c'}+=1;
    
  8. or download this
    my %hash = ( 'a'=>1, 'b'=>1, 'c'=>1 );
    @hash{'a'..'c'}++;