Help for this page

Select Code to Download


  1. or download this
    .4  .6  .1
    .3  .5  .1
    .0  .2  .1
    .5  .7  .1
    
  2. or download this
    my @keys = qw(start stop step);
    for my $type (@keys) {
      print $point->{$type}, "\t";
    }
    
  3. or download this
    my @keys = qw(start stop step);
    for my $type (@keys) {
      next unless exists $point->{$type};
      print $point->{$type}, "\t";
    }
    
  4. or download this
    my %weights = ( start => 10, stop => 20, step => 30 );
    for my $type ( sort { $weights{$a} <=> $weights{$b} } keys %$point ) {
      print $point->{$type}, "\t";
    }
    
  5. or download this
    my %weights = do { my $i = 0; map { $_ => $i++ } qw(start stop step ot
    +her stuff in order here) };