I'm trying to do if the number doesn't exist in combined numbers then it should be dnc
I understand that, but $dnc retains the previous value you assigned every time through the loop, so I wonder if that's what you intended. If you move the declaration and assignment into the loop, $dnc will be an empty string unless the current number doesn't exist in combined numbers.
I don't know if that's what you want though.
Improve your skills with Modern Perl: the free book.
In reply to Re^3: Extracting DNC issues
by chromatic
in thread Extracting DNC issues
by MoodyDreams999
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |