Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Addional "year" matching functionality in word matching script

by bms9nmh (Novice)
on Jun 27, 2016 at 11:31 UTC ( [id://1166652]=note: print w/replies, xml ) Need Help??


in reply to Re: Addional "year" matching functionality in word matching script
in thread Addional "year" matching functionality in word matching script

Thanks for the response, I should mention that I'm a noob to perl and my original code came from copying from other scripts and help from others. The bits in the code that say = ...; is this what I would actually write in the script or do I need to put something else in the space. Sorry, I'm a bit lost! I usually use bash and started using perl recently!
  • Comment on Re^2: Addional "year" matching functionality in word matching script

Replies are listed 'Best First'.
Re^3: Addional "year" matching functionality in word matching script
by GotToBTru (Prior) on Jun 27, 2016 at 11:54 UTC

    perlsyn and perlfunc will get you the definition of stuff you don't understand. perldebtut will get you started with the Perl debugger, which can be a really useful tool to learn how stuff works; you can try out commands interactively. Anything else, ask! We were all noobs once.

    But God demonstrates His own love toward us, in that while we were yet sinners, Christ died for us. Romans 5:8 (NASB)

Re^3: Addional "year" matching functionality in word matching script
by Corion (Patriarch) on Jun 27, 2016 at 11:33 UTC

    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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1166652]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-20 00:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found