I have failed miserably to ask perl to "search in an array for the elements I'm interested at, write their names or write an NA if you don't find them".
For example, suppose that I'm looking for Orc, Troll and Elf in an array
@creatures = qw/Troll Knight Elf Shrubbery Dragon Ni/;
How can I check for them and (my big problem) when not finding them writing and NA. In this example I would look for something like this:
NA Troll Elf
Thanks