|
|
| Just another Perl shrine | |
| PerlMonks |
Re^3: Extracting DNC issuesby chromatic (Archbishop) |
| on Oct 07, 2023 at 17:09 UTC ( [id://11154853]=note: print w/replies, xml ) | Need Help?? |
|
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 Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||