Help for this page

Select Code to Download


  1. or download this
    SELECT file1.name,address FROM file1, file2
       WHERE file1.name = file2.name
         AND rank = 'General';
    
  2. or download this
    while (<FILE1>) {
       chomp
       push @table1,[ split /\s+/ ];
    }
    
  3. or download this
    my @join;
    for my $i (@table1) {
    ...
        push @join,@$i,@$j;
      }
    }
    
  4. or download this
    my @select;
    for $i (@join) {
      push @select,$i if ($i->[0] eq $i->[3]) and ($i->[1] eq "Joe");
    }
    
  5. or download this
    my @project;
    for $i (@select) {
      push @project,[ $i->[0,2,4] ];
    }