![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
How to compare elements within an arrayby doubleqq (Acolyte) |
on Feb 20, 2014 at 18:45 UTC ( #1075621=perlquestion: print w/replies, xml ) | Need Help?? |
doubleqq has asked for the wisdom of the Perl Monks concerning the following question: Hi Monks, I have a list of files like so:
for each pair I want to notify the user that the set was paired and notify the user if a set is unpaired. I currently have the files read into an array. What I don't know is how to set up the regex and use that compare the filenames. My code so far seems off track... the mental block for me is how do I traverse the array and match on a regex condition? My conceptual code below hopefully reveals the deficiency in my thinking... Thank you all for any pointers and/or insight.
Back to
Seekers of Perl Wisdom
|
|