Help for this page

Select Code to Download


  1. or download this
    foreach my $color (@colors) {
       ...
    }
    
  2. or download this
    my $color;
    
  3. or download this
    use strict;
    
    ...
    $color is 'green' in loop,  in sub value is 'green'
    $color is 'blue' in loop,  in sub value is 'blue'