Help for this page

Select Code to Download


  1. or download this
    for $type (keys %$curr_struct_pos) {
    
  2. or download this
            for ($a=1;$$curr_struct_pos{$type}[$a];$a++) {
    
  3. or download this
    for my $var ($begin..$end) {#blah}
    
  4. or download this
    my @sorted=sort {$a <=> $b} @numlist;
    
  5. or download this
    $$curr_struct_pos{$type}[$a]
    
  6. or download this
    use strict;
    use warnings;
    ...
    my $type="key";
    my $index=0;
    $$curr_struct_pos{$type}[$index]++;
    
  7. or download this
    $path = "Global${type}Def:$$curr_struct_pos{$type}[$a].def";
    
  8. or download this
    for my $type (keys %$curr_struct_pos) {
        for my $index (1..@{$cur_struct_pos{$type}}-1) {
    ...
                  ".def"; #much easier to read
            $curr_struct_pos{$type}[$a] = extract();
    }
    
  9. or download this
    my %hash;
    my @list=qw(These elements are going to become keys);
    ...
    my $hash_ref =\%hash;
    my $array_ref=\@list;
    $hash->{$_}++ foreach @$list;