I want a PHP/Perl program (script should be accessible from command line) that allows me to enter a URL (of a blog) and some text, and then the program finds the permalink of the blog article that contains that text. The program should find the link as well as the article title (which should be the text part of the link). Link and article title should be delimited by the character ' | '
say I put [url removed, login to view] (not a real blog) as the URL and scriptlance as the text. It finds two articles that contains scriptlance and returns
[url removed, login to view] | Why scriptlance is great
[url removed, login to view] | Why scriptlance is still great
Documentation (in the form of comments) is required
[url removed, login to view]