in reply to Check If 2 Arrays Match
use warnings; use strict; my @ids = 0..5; my @files = 3..8; for my $id (@ids) { for my $file (@files) { print "$file\n" if $id eq $file; } } __END__ 3 4 5
Feel free to change the title of your node to something more useful like: "Check if 2 arrays match".
|
|---|