Help for this page

Select Code to Download


  1. or download this
    poo( [ 1 .. 4 ], [ "goo", "doo", "moo" ], [ 6 .. 9 ] );
    
    ...
        my $result = $length + $length1 + $length2;
        print("$result\n");
    }
    
  2. or download this
    "my" variable $second masks earlier declaration in same scope at test.
    +pl line 9.
    "my" variable $first masks earlier declaration in same scope at test.p
    +l line 13.
    "my" variable $third masks earlier declaration in same scope at test.p
    +l line 17.
    test.pl syntax OK
    
  3. or download this
    sub poo {
        my ( $first, $second, $third ) = @_;
    ...
        my $result = $length + $length1 + $length2;
        print("$result\n");
    }
    
  4. or download this
    sub poo {
        my ( $first, $second, $third ) = @_;
    ...
        }
        print "$total_length\n";
    }
    
  5. or download this
    sub poo {
    
    ...
    
        print "$total_length\n";
    }
    
  6. or download this
    sub poo {
    
    ...
    
        print "$total_length\n";
    }
    
  7. or download this
    sub poo {
    
    ...
    
        print "$total_length\n";
    }