![]() |
|
Think about Loose Coupling | |
PerlMonks |
Re^3: Addional "year" matching functionality in word matching scriptby Corion (Patriarch) |
on Jun 27, 2016 at 11:33 UTC ( #1166655=note: print w/replies, xml ) | Need Help?? |
Sorry - yes, the ... parts are logic that I left out. For finding the year within a title, you already have similar logic and it's not too hard to write code that finds things looking like a year within another string. For determining the five-matching-words logic, you already have that logic in your script, you just need to assign the result of that logic to a variable before doing further checks like available or matching years.
In Section
Seekers of Perl Wisdom
|
|