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".
In reply to Re: Quick Question?
by toolic
in thread Check If 2 Arrays Match
by facedag
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |