Help for this page

Select Code to Download


  1. or download this
    my $c = 2;
    my @a = ($c+0, $c+=1);
    print "@a";
    __END__
    2 3
    
  2. or download this
    my $c = 2;
    my @a = ($c+=1, "$c");
    print "@a";
    __END__
    3 3
    
  3. or download this
    my $c = 2;
    my @a = ($c+=2, $c+=1);
    print "@a";
    __END__
    5 5
    
  4. or download this
    my $c = 2;
    my @a = ($c+=1, $c+=2);
    print "@a";
    __END__
    5 5
    
  5. or download this
    my $c = 2;
    my @a = (($c), ($c+=1));
    print "@a";
    __END__
    3 3