Help for this page

Select Code to Download


  1. or download this
    my $sum = 0;
    foreach my $i (1 .. 80) {
        no strict 'refs';
        $sum += ${"Sel${i}Ttl"};
    }
    
  2. or download this
    my $sum = 0;
    foreach my $i (1 .. 80) {
        $sum += do {eval "$Sel${i}Ttl"}
    }
    
  3. or download this
    my $sum = 0;
    local $" = "+";
    eval "\$sum = @{[map {qq {\$Sel${_}Ttl}} 1 .. 80]}";