Help for this page

Select Code to Download


  1. or download this
    foreach my $elA (@arA) {
        foreach my $elB (@arB) {
    ...
            }
        }
    }
    
  2. or download this
    foreach my $elA (@arA) {
        map { ($elA eq $_) and push @{$all{$elA}}, "$_ - from Array B" } @
    +arB;
        map { ($elA eq $_) and push @{$all{$elA}}, "$_ - from Array C" } @
    +arC;
    }
    
  3. or download this
    #!/usr/bin/perl -w
    
    ...
    
    print Dumper %all;
    # Then do some other things with %all...