Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    ...
    3,vw,bug
    3,vw,jetta
    3,vw,phaeton
    
  2. or download this
    my @carmakers = (
      \%thismaker,
      \%thismaker,
      \%thismaker
    );
    
  3. or download this
    my %thismaker = ('thismaker' => 'gm', 'makes' => \@makes);
    
  4. or download this
    my @makes = (\%thismake, \%thismake, \%thismake);
    
  5. or download this
    my %thismake = ('thismake' => 'saturn');
    my %thismake = ('thismake' => 'chevy');
    my %thismake = ('thismake' => 'caddy');
    
  6. or download this
    <tmpl_loop carmakers>
        <tmpl_var thismaker>
    ...
            <tmpl_var thismake>
        </tmpl_loop>
    </tmpl_loop>
    
  7. or download this
    my $seen = 0;
    
    ...
        $maker{'makes'} = \@makes;
      }
    }
    
  8. or download this
    while (looping over something) {
      if (cond1) {
    ...
        do a bunch of other things
      }
    }