Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

RE: RE: Merging Files: A Different Twist

by BlaisePascal (Monk)
on Sep 15, 2000 at 08:08 UTC ( [id://32621]=note: print w/replies, xml ) Need Help??

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] ];
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://32621]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-19 01:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found